diff --git a/management/templates/index.html b/management/templates/index.html index 8838a8d0..805213c5 100644 --- a/management/templates/index.html +++ b/management/templates/index.html @@ -230,7 +230,7 @@ $(function() { function show_modal_error(title, message, callback) { $('#global_modal h4').text(title); $('#global_modal .modal-body').html("

"); - if (typeof question == String) { + if (typeof question == 'string') { $('#global_modal p').text(message); $('#global_modal .modal-dialog').addClass("modal-sm"); } else { @@ -247,7 +247,7 @@ function show_modal_error(title, message, callback) { function show_modal_confirm(title, question, verb, yes_callback, cancel_callback) { $('#global_modal h4').text(title); - if (typeof question == String) { + if (typeof question == 'string') { $('#global_modal .modal-dialog').addClass("modal-sm"); $('#global_modal .modal-body').html("

"); $('#global_modal p').text(question); @@ -255,7 +255,7 @@ function show_modal_confirm(title, question, verb, yes_callback, cancel_callback $('#global_modal .modal-dialog').removeClass("modal-sm"); $('#global_modal .modal-body').html("").append(question); } - if (typeof verb == String) { + if (typeof verb == 'string') { $('#global_modal .btn-default').show().text("Cancel"); $('#global_modal .btn-danger').show().text(verb); } else { diff --git a/management/templates/users.html b/management/templates/users.html index 2167a6b1..15ca823b 100644 --- a/management/templates/users.html +++ b/management/templates/users.html @@ -223,7 +223,7 @@ function mod_priv(elem, add_remove) { var add_remove1 = add_remove.charAt(0).toUpperCase() + add_remove.substring(1); show_modal_confirm( "Modify Privileges", - "Are you sure you want to " + add_remove + " the " + priv + " privilege for " + email + "?", + $("

Are you sure you want to " + add_remove + " the " + priv + " privilege for " + email + "?

"), add_remove1, function() { api( diff --git a/management/templates/web.html b/management/templates/web.html index 68921b90..6f594eeb 100644 --- a/management/templates/web.html +++ b/management/templates/web.html @@ -82,7 +82,7 @@ function show_change_web_root(elem) { var root = $(elem).parents('tr').attr('data-custom-web-root'); show_modal_confirm( 'Change Root Directory for ' + domain, - '

You can change the static directory for ' + domain + ' to:

' + root + '

First create this directory on the server. Then click Update to scan for the directory and update web settings.', + $('

You can change the static directory for ' + domain + ' to:

' + root + '

First create this directory on the server. Then click Update to scan for the directory and update web settings.'), 'Update', function() { do_web_update(); }); }