1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-25 02:47:04 +00:00

my html5 stub was wrong; 8c3aed2846

This commit is contained in:
Joshua Tauberer 2015-04-19 13:08:53 +00:00
parent a31d713fcc
commit 35f4a49d10
3 changed files with 5 additions and 5 deletions

View File

@ -230,7 +230,7 @@ $(function() {
function show_modal_error(title, message, callback) { function show_modal_error(title, message, callback) {
$('#global_modal h4').text(title); $('#global_modal h4').text(title);
$('#global_modal .modal-body').html("<p/>"); $('#global_modal .modal-body').html("<p/>");
if (typeof question == String) { if (typeof question == 'string') {
$('#global_modal p').text(message); $('#global_modal p').text(message);
$('#global_modal .modal-dialog').addClass("modal-sm"); $('#global_modal .modal-dialog').addClass("modal-sm");
} else { } else {
@ -247,7 +247,7 @@ function show_modal_error(title, message, callback) {
function show_modal_confirm(title, question, verb, yes_callback, cancel_callback) { function show_modal_confirm(title, question, verb, yes_callback, cancel_callback) {
$('#global_modal h4').text(title); $('#global_modal h4').text(title);
if (typeof question == String) { if (typeof question == 'string') {
$('#global_modal .modal-dialog').addClass("modal-sm"); $('#global_modal .modal-dialog').addClass("modal-sm");
$('#global_modal .modal-body').html("<p/>"); $('#global_modal .modal-body').html("<p/>");
$('#global_modal p').text(question); $('#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-dialog').removeClass("modal-sm");
$('#global_modal .modal-body').html("").append(question); $('#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-default').show().text("Cancel");
$('#global_modal .btn-danger').show().text(verb); $('#global_modal .btn-danger').show().text(verb);
} else { } else {

View File

@ -223,7 +223,7 @@ function mod_priv(elem, add_remove) {
var add_remove1 = add_remove.charAt(0).toUpperCase() + add_remove.substring(1); var add_remove1 = add_remove.charAt(0).toUpperCase() + add_remove.substring(1);
show_modal_confirm( show_modal_confirm(
"Modify Privileges", "Modify Privileges",
"Are you sure you want to " + add_remove + " the " + priv + " privilege for <b>" + email + "</b>?", $("<p>Are you sure you want to " + add_remove + " the " + priv + " privilege for <b>" + email + "</b>?</p>"),
add_remove1, add_remove1,
function() { function() {
api( api(

View File

@ -82,7 +82,7 @@ function show_change_web_root(elem) {
var root = $(elem).parents('tr').attr('data-custom-web-root'); var root = $(elem).parents('tr').attr('data-custom-web-root');
show_modal_confirm( show_modal_confirm(
'Change Root Directory for ' + domain, 'Change Root Directory for ' + domain,
'<p>You can change the static directory for <tt>' + domain + '</tt> to:</p> <p><tt>' + root + '</tt></p> <p>First create this directory on the server. Then click Update to scan for the directory and update web settings.', $('<p>You can change the static directory for <tt>' + domain + '</tt> to:</p> <p><tt>' + root + '</tt></p> <p>First create this directory on the server. Then click Update to scan for the directory and update web settings.'),
'Update', 'Update',
function() { do_web_update(); }); function() { do_web_update(); });
} }