From e5fc1d427f4eb08c7907f104645df82fdb38f3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien?= Date: Mon, 13 Jul 2020 18:13:52 +0200 Subject: [PATCH] Fix: reset has-error class on resetForm() function. --- assets/js/backend_categories_helper.js | 2 ++ assets/js/backend_services_helper.js | 2 ++ assets/js/backend_users_admins.js | 2 ++ assets/js/backend_users_providers.js | 2 ++ 4 files changed, 8 insertions(+) diff --git a/assets/js/backend_categories_helper.js b/assets/js/backend_categories_helper.js index 3eb4246e..cc47f976 100644 --- a/assets/js/backend_categories_helper.js +++ b/assets/js/backend_categories_helper.js @@ -309,6 +309,8 @@ $('#categories .record-details').find('input, textarea').prop('readonly', true); $('#edit-category, #delete-category').prop('disabled', true); + $('.record-details .has-error').removeClass('has-error'); + $('#filter-categories .selected').removeClass('selected'); $('#filter-categories .results').css('color', ''); $('#filter-categories button').prop('disabled', false); diff --git a/assets/js/backend_services_helper.js b/assets/js/backend_services_helper.js index 1f496b2e..9a5224eb 100644 --- a/assets/js/backend_services_helper.js +++ b/assets/js/backend_services_helper.js @@ -277,6 +277,8 @@ $('#services .record-details').find('input, textarea').prop('readonly', true); $('#services .record-details').find('select').prop('disabled', true); + $('.record-details .has-error').removeClass('has-error'); + $('#filter-services .selected').removeClass('selected'); $('#filter-services button').prop('disabled', false); $('#filter-services .results').css('color', ''); diff --git a/assets/js/backend_users_admins.js b/assets/js/backend_users_admins.js index 2626f45c..a8f99b1a 100644 --- a/assets/js/backend_users_admins.js +++ b/assets/js/backend_users_admins.js @@ -300,6 +300,8 @@ $('#admin-notifications').removeClass('active'); $('#edit-admin, #delete-admin').prop('disabled', true); + $('#admins .has-error').removeClass('has-error'); + $('#filter-admins .selected').removeClass('selected'); $('#filter-admins button').prop('disabled', false); $('#filter-admins .results').css('color', ''); diff --git a/assets/js/backend_users_providers.js b/assets/js/backend_users_providers.js index b718877d..55e25001 100755 --- a/assets/js/backend_users_providers.js +++ b/assets/js/backend_users_providers.js @@ -360,6 +360,8 @@ $('.breaks').find('.edit-break, .delete-break').prop('disabled', true); $('.extra-periods').find('.edit-extra, .delete-extra').prop('disabled', true); + $('#providers .has-error').removeClass('has-error'); + $('#edit-provider, #delete-provider').prop('disabled', true); $('#providers .record-details').find('input, textarea').val(''); $('#provider-services input:checkbox').prop('checked', false);