mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 14:42:23 +03:00
The form must be reset whenever the user hits the reset button.
This commit is contained in:
parent
1fc2fd9324
commit
644ada0db5
5 changed files with 6 additions and 1 deletions
|
@ -85,6 +85,7 @@ CustomersHelper.prototype.bindEventHandlers = function() {
|
|||
$('#filter-customers .clear').click(function() {
|
||||
$('#filter-customers .key').val('');
|
||||
BackendCustomers.helper.filter('');
|
||||
BackendCustomers.helper.resetForm();
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -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) {
|
|||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ ProvidersHelper.prototype.bindEventHandlers = function() {
|
|||
$('#filter-providers .clear').click(function() {
|
||||
BackendUsers.helper.filter('');
|
||||
$('#filter-providers .key').val('');
|
||||
BackendUsers.helper.resetForm();
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,6 +43,7 @@ SecretariesHelper.prototype.bindEventHandlers = function() {
|
|||
$('#filter-secretaries .clear').click(function() {
|
||||
BackendUsers.helper.filter('');
|
||||
$('#filter-secretaries .key').val('');
|
||||
BackendUsers.helper.resetForm();
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue