The form must be reset whenever the user hits the reset button.

This commit is contained in:
Alex Tselegidis 2015-11-28 12:21:12 +01:00
parent 1fc2fd9324
commit 644ada0db5
5 changed files with 6 additions and 1 deletions

View File

@ -85,6 +85,7 @@ CustomersHelper.prototype.bindEventHandlers = function() {
$('#filter-customers .clear').click(function() {
$('#filter-customers .key').val('');
BackendCustomers.helper.filter('');
BackendCustomers.helper.resetForm();
});
/**

View File

@ -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();
});
/**

View File

@ -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) {
});
}
};

View File

@ -43,6 +43,7 @@ ProvidersHelper.prototype.bindEventHandlers = function() {
$('#filter-providers .clear').click(function() {
BackendUsers.helper.filter('');
$('#filter-providers .key').val('');
BackendUsers.helper.resetForm();
});
/**

View File

@ -43,6 +43,7 @@ SecretariesHelper.prototype.bindEventHandlers = function() {
$('#filter-secretaries .clear').click(function() {
BackendUsers.helper.filter('');
$('#filter-secretaries .key').val('');
BackendUsers.helper.resetForm();
});
/**