From 35f4a49d10fbba7c7007645a1441968c50321270 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 19 Apr 2015 13:08:53 +0000 Subject: [PATCH] my html5 stub was wrong; 8c3aed284699a226e660a71f95608c900ff6e804 --- management/templates/index.html | 6 +++--- management/templates/users.html | 2 +- management/templates/web.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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(); }); }