From 644ada0db515d2cc1cb04b0db86bae2403cacb80 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 28 Nov 2015 12:21:12 +0100 Subject: [PATCH] The form must be reset whenever the user hits the reset button. --- src/assets/js/backend_customers.js | 1 + src/assets/js/backend_services.js | 2 ++ src/assets/js/backend_users_admins.js | 2 +- src/assets/js/backend_users_providers.js | 1 + src/assets/js/backend_users_secretaries.js | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/assets/js/backend_customers.js b/src/assets/js/backend_customers.js index 465423c8..c09ff712 100644 --- a/src/assets/js/backend_customers.js +++ b/src/assets/js/backend_customers.js @@ -85,6 +85,7 @@ CustomersHelper.prototype.bindEventHandlers = function() { $('#filter-customers .clear').click(function() { $('#filter-customers .key').val(''); BackendCustomers.helper.filter(''); + BackendCustomers.helper.resetForm(); }); /** diff --git a/src/assets/js/backend_services.js b/src/assets/js/backend_services.js index ef064e3f..75ef4683 100644 --- a/src/assets/js/backend_services.js +++ b/src/assets/js/backend_services.js @@ -144,6 +144,7 @@ ServicesHelper.prototype.bindEventHandlers = function() { $('#filter-services .clear').click(function() { $('#filter-services .key').val(''); BackendServices.helper.filter(''); + BackendServices.helper.resetForm(); }); /** @@ -495,6 +496,7 @@ CategoriesHelper.prototype.bindEventHandlers = function() { $('#filter-categories .clear').click(function() { $('#filter-categories .key').val(''); BackendServices.helper.filter(''); + BackendServices.helper.resetForm(); }); /** diff --git a/src/assets/js/backend_users_admins.js b/src/assets/js/backend_users_admins.js index f127d599..690e9a79 100644 --- a/src/assets/js/backend_users_admins.js +++ b/src/assets/js/backend_users_admins.js @@ -43,6 +43,7 @@ AdminsHelper.prototype.bindEventHandlers = function() { $('#filter-admins .clear').click(function() { BackendUsers.helper.filter(''); $('#filter-admins .key').val(''); + BackendUsers.helper.resetForm(); }); /** @@ -420,4 +421,3 @@ AdminsHelper.prototype.select = function(id, display) { }); } }; - diff --git a/src/assets/js/backend_users_providers.js b/src/assets/js/backend_users_providers.js index b830fc26..cfbe9c7b 100644 --- a/src/assets/js/backend_users_providers.js +++ b/src/assets/js/backend_users_providers.js @@ -43,6 +43,7 @@ ProvidersHelper.prototype.bindEventHandlers = function() { $('#filter-providers .clear').click(function() { BackendUsers.helper.filter(''); $('#filter-providers .key').val(''); + BackendUsers.helper.resetForm(); }); /** diff --git a/src/assets/js/backend_users_secretaries.js b/src/assets/js/backend_users_secretaries.js index a1af6250..2a96ebfb 100644 --- a/src/assets/js/backend_users_secretaries.js +++ b/src/assets/js/backend_users_secretaries.js @@ -43,6 +43,7 @@ SecretariesHelper.prototype.bindEventHandlers = function() { $('#filter-secretaries .clear').click(function() { BackendUsers.helper.filter(''); $('#filter-secretaries .key').val(''); + BackendUsers.helper.resetForm(); }); /**