diff --git a/assets/js/backend_calendar_default_view.js b/assets/js/backend_calendar_default_view.js index d5ad4500..bad9ef7c 100755 --- a/assets/js/backend_calendar_default_view.js +++ b/assets/js/backend_calendar_default_view.js @@ -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'); diff --git a/assets/js/backend_calendar_table_view.js b/assets/js/backend_calendar_table_view.js index ae816dbf..da8354c4 100755 --- a/assets/js/backend_calendar_table_view.js +++ b/assets/js/backend_calendar_table_view.js @@ -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(''); + $('#message-box').append(''); $('#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'); diff --git a/assets/js/backend_categories_helper.js b/assets/js/backend_categories_helper.js index ece855c8..c3106d05 100644 --- a/assets/js/backend_categories_helper.js +++ b/assets/js/backend_categories_helper.js @@ -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'); } } ]; diff --git a/assets/js/backend_customers_helper.js b/assets/js/backend_customers_helper.js index 9ea179d4..acdba92a 100644 --- a/assets/js/backend_customers_helper.js +++ b/assets/js/backend_customers_helper.js @@ -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'); } } ]; diff --git a/assets/js/backend_services_helper.js b/assets/js/backend_services_helper.js index 32d6e4aa..61128380 100644 --- a/assets/js/backend_services_helper.js +++ b/assets/js/backend_services_helper.js @@ -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'); } } ]; diff --git a/assets/js/backend_settings.js b/assets/js/backend_settings.js index 9bb3e85d..4c4ce1ba 100644 --- a/assets/js/backend_settings.js +++ b/assets/js/backend_settings.js @@ -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'); } } ]; diff --git a/assets/js/backend_users_admins.js b/assets/js/backend_users_admins.js index d07202b2..5367ef7c 100644 --- a/assets/js/backend_users_admins.js +++ b/assets/js/backend_users_admins.js @@ -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'); } } ]; diff --git a/assets/js/backend_users_providers.js b/assets/js/backend_users_providers.js index 876395f8..a5e70581 100755 --- a/assets/js/backend_users_providers.js +++ b/assets/js/backend_users_providers.js @@ -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'); } } ]; diff --git a/assets/js/backend_users_secretaries.js b/assets/js/backend_users_secretaries.js index d796c2cb..0ff3bff9 100644 --- a/assets/js/backend_users_secretaries.js +++ b/assets/js/backend_users_secretaries.js @@ -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'); } } ]; diff --git a/assets/js/frontend_book.js b/assets/js/frontend_book.js index 0ba9d18f..9e0d8640 100644 --- a/assets/js/frontend_book.js +++ b/assets/js/frontend_book.js @@ -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'); } }, { diff --git a/assets/js/general_functions.js b/assets/js/general_functions.js index 23bb41f9..23155942 100755 --- a/assets/js/general_functions.js +++ b/assets/js/general_functions.js @@ -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. $('
', { - 'id': 'message_box', + 'id': 'message-box', 'title': title, 'html': [ $('

', { @@ -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'); }; /**