Bug 42463: Use text instead of HTML for confirm message
This change uses the text instad of the HTML for the delete SMS provider confirm message. Test plan: 0. Apply the patch 1. Go to Administration, click System preferences, search for SMSSendDriver 2. Set SMSSendDriver to "Email" 3. Go to administration 4. Click on "SMS cellular providers" 5. Click "New SMS provider" 6. For "Name" and "Domain" write: This & That 7. Click Submit 8. Click "Delete" for the new provider 9. Note that the message says "Are you sure you want to delete This & That?" 10. Click "OK" Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
7e23ab9f93
commit
63f8c65b36
|
|
@ -66,12 +66,12 @@ function delete_provider(id, users) {
|
|||
c = confirm(
|
||||
__(
|
||||
"Are you sure you want to delete %s? %s patron(s) are using it!"
|
||||
).format($("#name_" + id).html(), users)
|
||||
).format($("#name_" + id).text(), users)
|
||||
);
|
||||
} else {
|
||||
c = confirm(
|
||||
__("Are you sure you want to delete %s?").format(
|
||||
$("#name_" + id).html()
|
||||
$("#name_" + id).text()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue