mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 19:03:21 +03:00
Renamed the id attribute from "message_box" to "message-box" to keep things consistent.
This commit is contained in:
parent
b0b8620379
commit
5031b66bd2
11 changed files with 34 additions and 34 deletions
|
@ -148,7 +148,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
|
||||
$.post(url, data)
|
||||
.done(function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
|
||||
var extraWorkingPlan = jQuery.parseJSON(lastFocusedEventData.data.settings.extra_working_plan);
|
||||
delete extraWorkingPlan[lastFocusedEventData.start.format('YYYY-MM-DD')];
|
||||
|
@ -174,7 +174,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
|
||||
$.post(url, data)
|
||||
.done(function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
|
||||
// Refresh calendar event items.
|
||||
$('#select-filter-item').trigger('change');
|
||||
|
@ -185,7 +185,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
}
|
||||
];
|
||||
|
@ -199,7 +199,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
'id': 'delete-reason',
|
||||
'rows': '3',
|
||||
})
|
||||
.appendTo('#message_box');
|
||||
.appendTo('#message-box');
|
||||
} else {
|
||||
// Do not display confirmation prompt.
|
||||
url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_delete_unavailable';
|
||||
|
@ -211,7 +211,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
|
||||
$.post(url, data)
|
||||
.done(function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
|
||||
// Refresh calendar event items.
|
||||
$('#select-filter-item').trigger('change');
|
||||
|
|
|
@ -226,7 +226,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
|
||||
$.post(url, data)
|
||||
.done(function (response) {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
|
||||
var extraWorkingPlan = jQuery.parseJSON(lastFocusedEventData.data.settings.extra_working_plan);
|
||||
delete extraWorkingPlan[lastFocusedEventData.start.format('YYYY-MM-DD')];
|
||||
|
@ -251,7 +251,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
|
||||
$.post(url, data)
|
||||
.done(function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
|
||||
// Refresh calendar event items.
|
||||
$('#select-filter-item').trigger('change');
|
||||
|
@ -262,7 +262,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
}
|
||||
];
|
||||
|
@ -271,7 +271,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
GeneralFunctions.displayMessageBox(EALang.delete_appointment_title,
|
||||
EALang.write_appointment_removal_reason, buttons);
|
||||
|
||||
$('#message_box').append('<textarea id="delete-reason" rows="3"></textarea>');
|
||||
$('#message-box').append('<textarea id="delete-reason" rows="3"></textarea>');
|
||||
$('#delete-reason').css('width', '100%');
|
||||
} else {
|
||||
// Do not display confirmation prompt.
|
||||
|
@ -284,7 +284,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
|
||||
$.post(url, data)
|
||||
.done(function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
|
||||
// Refresh calendar event items.
|
||||
$('#select-filter-item').trigger('change');
|
||||
|
|
|
@ -110,13 +110,13 @@
|
|||
text: EALang.delete,
|
||||
click: function () {
|
||||
instance.delete(categoryId);
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
},
|
||||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
@ -173,13 +173,13 @@
|
|||
text: EALang.delete,
|
||||
click: function () {
|
||||
instance.delete(customerId);
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
},
|
||||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
@ -172,13 +172,13 @@
|
|||
text: EALang.delete,
|
||||
click: function () {
|
||||
instance.delete(serviceId);
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
},
|
||||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
@ -259,14 +259,14 @@ window.BackendSettings = window.BackendSettings || {};
|
|||
})
|
||||
.fail(GeneralFunctions.ajaxFailureHandler)
|
||||
.always(function() {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
text: EALang.cancel,
|
||||
click: function() {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
@ -114,13 +114,13 @@
|
|||
text: EALang.delete,
|
||||
click: function () {
|
||||
this.delete(adminId);
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}.bind(this)
|
||||
},
|
||||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
@ -125,13 +125,13 @@
|
|||
text: EALang.delete,
|
||||
click: function () {
|
||||
this.delete(providerId);
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}.bind(this)
|
||||
},
|
||||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
@ -119,13 +119,13 @@
|
|||
text: EALang.delete,
|
||||
click: function () {
|
||||
this.delete(secretaryId);
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}.bind(this)
|
||||
},
|
||||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
@ -371,7 +371,7 @@ window.FrontendBook = window.FrontendBook || {};
|
|||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -398,7 +398,7 @@ window.FrontendBook = window.FrontendBook || {};
|
|||
'width': '100%'
|
||||
}
|
||||
})
|
||||
.appendTo('#message_box');
|
||||
.appendTo('#message-box');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
@ -408,7 +408,7 @@ window.FrontendBook = window.FrontendBook || {};
|
|||
{
|
||||
text: EALang.cancel,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -44,7 +44,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
{
|
||||
text: EALang.close,
|
||||
click: function () {
|
||||
$('#message_box').dialog('close');
|
||||
$('#message-box').dialog('close');
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -52,13 +52,13 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
}
|
||||
|
||||
// Destroy previous dialog instances.
|
||||
$('#message_box')
|
||||
$('#message-box')
|
||||
.dialog('destroy')
|
||||
.remove();
|
||||
|
||||
// Create the html of the message box.
|
||||
$('<div/>', {
|
||||
'id': 'message_box',
|
||||
'id': 'message-box',
|
||||
'title': title,
|
||||
'html': [
|
||||
$('<p/>', {
|
||||
|
@ -68,7 +68,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
})
|
||||
.appendTo('body');
|
||||
|
||||
$("#message_box").dialog({
|
||||
$("#message-box").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resize: 'auto',
|
||||
|
@ -79,9 +79,9 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
closeOnEscape: true
|
||||
});
|
||||
|
||||
$('#message_box').dialog('open');
|
||||
$('#message-box').dialog('open');
|
||||
$('.ui-dialog .ui-dialog-buttonset button').addClass('btn btn-light');
|
||||
$('#message_box .ui-dialog-titlebar-close').hide();
|
||||
$('#message-box .ui-dialog-titlebar-close').hide();
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -324,7 +324,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
})
|
||||
]
|
||||
})
|
||||
.appendTo('#message_box');
|
||||
.appendTo('#message-box');
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue