WIP: Aureplop/kpsul js refactor #501
1 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ class KHistory {
|
||||||
if (!to_update)
|
if (!to_update)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$.extend(to_update, update_data);
|
to_update.update(update_data);
|
||||||
var $new_elt = to_update.display($(this.templates[type]), {});
|
var $new_elt = to_update.display($(this.templates[type]), {});
|
||||||
|
|
||||||
var $to_replace = this._$container.find('#'+type+'-'+id+'>:first-child');
|
var $to_replace = this._$container.find('#'+type+'-'+id+'>:first-child');
|
||||||
|
@ -109,7 +109,7 @@ class KHistory {
|
||||||
if (options.to && dateUTCToParis(opegroup.at).isAfter(moment(options.to)))
|
if (options.to && dateUTCToParis(opegroup.at).isAfter(moment(options.to)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (options.transfersonly && opegroup.constructor.verbose_name === 'opegroup')
|
if (options.transfersonly && opegroup.constructor.verbose_name == 'opegroup')
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (options.accounts && options.accounts.length &&
|
if (options.accounts && options.accounts.length &&
|
||||||
|
@ -117,7 +117,7 @@ class KHistory {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (options.checkouts && options.checkouts.length &&
|
if (options.checkouts && options.checkouts.length &&
|
||||||
(opegroup.modelname === 'transfergroup' ||
|
(opegroup.modelname == 'transfergroup' ||
|
||||||
options.checkouts.indexOf(opegroup.checkout_id) < 0))
|
options.checkouts.indexOf(opegroup.checkout_id) < 0))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue