From 1e855182bd2d964f61ab193d9355079b772eb26b Mon Sep 17 00:00:00 2001 From: Janina Phillips Date: Thu, 18 Jun 2020 14:37:11 -0400 Subject: [PATCH] hidden is now d-none --- application/views/backend/header.php | 10 +++++----- application/views/general/installation.php | 2 +- application/views/user/forgot_password.php | 2 +- application/views/user/login.php | 2 +- .../backend_calendar_extra_periods_modal.js | 6 +++--- ...backend_calendar_unavailabilities_modal.js | 6 +++--- assets/js/forgot_password.js | 4 ++-- assets/js/login.js | 4 ++-- assets/js/working_plan.js | 20 +++++++++---------- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/application/views/backend/header.php b/application/views/backend/header.php index fa7b8b5f..8d3dc30f 100755 --- a/application/views/backend/header.php +++ b/application/views/backend/header.php @@ -46,7 +46,7 @@ - +
diff --git a/application/views/user/forgot_password.php b/application/views/user/forgot_password.php index 4089ebc5..ce5baf2e 100644 --- a/application/views/user/forgot_password.php +++ b/application/views/user/forgot_password.php @@ -67,7 +67,7 @@


- +
diff --git a/application/views/user/login.php b/application/views/user/login.php index 24eea16a..9434815e 100644 --- a/application/views/user/login.php +++ b/application/views/user/login.php @@ -66,7 +66,7 @@


- +
diff --git a/assets/js/backend_calendar_extra_periods_modal.js b/assets/js/backend_calendar_extra_periods_modal.js index fb1b2928..eb89f0be 100644 --- a/assets/js/backend_calendar_extra_periods_modal.js +++ b/assets/js/backend_calendar_extra_periods_modal.js @@ -62,11 +62,11 @@ window.BackendCalendarExtraPeriodsModal = window.BackendCalendarExtraPeriodsModa $dialog.find('.modal-message') .text(EALang.extra_period_saved) .addClass('alert-success') - .removeClass('alert-danger hidden'); + .removeClass('alert-danger d-none'); // Close the modal dialog and refresh the calendar appointments after one second. setTimeout(function () { - $dialog.find('.alert').addClass('hidden'); + $dialog.find('.alert').addClass('d-none'); $dialog.modal('hide'); var providerId = $('#extra-provider').val(); @@ -93,7 +93,7 @@ window.BackendCalendarExtraPeriodsModal = window.BackendCalendarExtraPeriodsModa 'the operation could not complete due to server communication errors.'); $dialog.find('.modal-message').txt(EALang.service_communication_error); - $dialog.find('.modal-message').addClass('alert-danger').removeClass('hidden'); + $dialog.find('.modal-message').addClass('alert-danger').removeClass('d-none'); }; BackendCalendarApi.saveExtraPeriod(extra, successCallback, errorCallback); diff --git a/assets/js/backend_calendar_unavailabilities_modal.js b/assets/js/backend_calendar_unavailabilities_modal.js index f565d120..47307b77 100755 --- a/assets/js/backend_calendar_unavailabilities_modal.js +++ b/assets/js/backend_calendar_unavailabilities_modal.js @@ -39,7 +39,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili $dialog.find('.modal-message') .text(EALang.start_date_before_end_error) .addClass('alert-danger') - .removeClass('hidden'); + .removeClass('d-none'); $dialog.find('#unavailable-start, #unavailable-end').closest('.form-group').addClass('has-error'); return; @@ -63,7 +63,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili Backend.displayNotification(EALang.unavailable_saved); // Close the modal dialog and refresh the calendar appointments. - $dialog.find('.alert').addClass('hidden'); + $dialog.find('.alert').addClass('d-none'); $dialog.modal('hide'); $('#select-filter-item').trigger('change'); }; @@ -73,7 +73,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili 'the operation could not complete due to server communication errors.'); $dialog.find('.modal-message').txt(EALang.service_communication_error); - $dialog.find('.modal-message').addClass('alert-danger').removeClass('hidden'); + $dialog.find('.modal-message').addClass('alert-danger').removeClass('d-none'); }; BackendCalendarApi.saveUnavailable(unavailable, successCallback, errorCallback); diff --git a/assets/js/forgot_password.js b/assets/js/forgot_password.js index 8af8d828..1f852b0c 100644 --- a/assets/js/forgot_password.js +++ b/assets/js/forgot_password.js @@ -22,12 +22,12 @@ $(function () { var $alert = $('.alert'); - $alert.addClass('hidden'); + $alert.addClass('d-none'); $('#get-new-password').prop('disabled', true); $.post(url, data) .done(function (response) { - $alert.removeClass('hidden alert-danger alert-success'); + $alert.removeClass('d-none alert-danger alert-success'); $('#get-new-password').prop('disabled', false); if (response === GlobalVariables.AJAX_SUCCESS) { $alert.addClass('alert-success'); diff --git a/assets/js/login.js b/assets/js/login.js index 6b38a9c4..b5cf2923 100644 --- a/assets/js/login.js +++ b/assets/js/login.js @@ -22,7 +22,7 @@ $(function () { var $alert = $('.alert'); - $alert.addClass('hidden'); + $alert.addClass('d-none'); $.post(url, data) .done(function (response) { @@ -31,7 +31,7 @@ $(function () { } else { $alert.text(EALang['login_failed']); $alert - .removeClass('hidden alert-danger alert-success') + .removeClass('d-none alert-danger alert-success') .addClass('alert-danger'); } }) diff --git a/assets/js/working_plan.js b/assets/js/working_plan.js index ee2ce22d..66fcf5ed 100755 --- a/assets/js/working_plan.js +++ b/assets/js/working_plan.js @@ -241,7 +241,7 @@ }), $('