From 769668c828533cad8625bf3ec513a2ae5557abb6 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 7 Sep 2020 11:15:01 +0300 Subject: [PATCH] Move the call to action button of modals to the right --- application/views/backend/calendar.php | 8 ++++---- assets/js/backend_calendar_default_view.js | 14 +++++++------- assets/js/backend_calendar_extra_periods_modal.js | 3 --- assets/js/backend_calendar_table_view.js | 12 ++++++------ assets/js/backend_categories_helper.js | 12 ++++++------ assets/js/backend_customers_helper.js | 6 +++--- assets/js/backend_services_helper.js | 6 +++--- assets/js/backend_settings.js | 12 ++++++------ assets/js/backend_users_admins.js | 15 +++++++-------- assets/js/backend_users_providers.js | 15 +++++++-------- assets/js/backend_users_secretaries.js | 12 ++++++------ 11 files changed, 55 insertions(+), 60 deletions(-) diff --git a/application/views/backend/calendar.php b/application/views/backend/calendar.php index 82c23e3e..d59b2a26 100755 --- a/application/views/backend/calendar.php +++ b/application/views/backend/calendar.php @@ -329,9 +329,9 @@ @@ -395,9 +395,9 @@ @@ -456,8 +456,8 @@ @@ -480,8 +480,8 @@ diff --git a/assets/js/backend_calendar_default_view.js b/assets/js/backend_calendar_default_view.js index bad9ef7c..258ceb9f 100755 --- a/assets/js/backend_calendar_default_view.js +++ b/assets/js/backend_calendar_default_view.js @@ -161,6 +161,12 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; } else if (lastFocusedEventData.data.is_unavailable === '0') { var buttons = [ + { + text: EALang.cancel, + click: function () { + $('#message-box').dialog('close'); + } + }, { text: 'OK', click: function () { @@ -181,12 +187,6 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; }) .fail(GeneralFunctions.ajaxFailureHandler); } - }, - { - text: EALang.cancel, - click: function () { - $('#message-box').dialog('close'); - } } ]; @@ -197,7 +197,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; $('