mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-29 01:52:24 +03:00
Rename the "display" filter parameter to "show" for consistency.
This commit is contained in:
parent
bd3b55c2f9
commit
e0c66cd066
1 changed files with 4 additions and 4 deletions
|
@ -338,9 +338,9 @@ App.Pages.Customers = (function () {
|
|||
* @param {String} keyword This keyword string is used to filter the customer records.
|
||||
* @param {Number} selectId Optional, if set then after the filter operation the record with the given
|
||||
* ID will be selected (but not displayed).
|
||||
* @param {Boolean} display Optional (false), if true then the selected record will be displayed on the form.
|
||||
* @param {Boolean} show Optional (false), if true then the selected record will be displayed on the form.
|
||||
*/
|
||||
function filter(keyword, selectId = null, display = false) {
|
||||
function filter(keyword, selectId = null, show = false) {
|
||||
App.Http.Customers.search(keyword, filterLimit).then((response) => {
|
||||
filterResults = response;
|
||||
|
||||
|
@ -365,13 +365,13 @@ App.Pages.Customers = (function () {
|
|||
'text': App.Lang.load_more,
|
||||
'click': function () {
|
||||
filterLimit += 20;
|
||||
filter(keyword, selectId, display);
|
||||
filter(keyword, selectId, show);
|
||||
}.bind(this)
|
||||
}).appendTo('#filter-customers .results');
|
||||
}
|
||||
|
||||
if (selectId) {
|
||||
select(selectId, display);
|
||||
select(selectId, show);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue