WIP: Aureplop/kpsul js refactor #501
1 changed files with 1 additions and 4 deletions
|
@ -239,10 +239,7 @@ $(document).ready(function() {
|
|||
data = $.extend({}, websocket_msg_default, JSON.parse(e.data));
|
||||
|
||||
for (var i=0; i<data['opegroups'].length; i++) {
|
||||
if (data['opegroups'][i]['add'] &&
|
||||
moment(data['opegroups'][i]['at']).isBefore(moment($to_date.val()).add(15, 'minutes'))) {
|
||||
khistory.addOpeGroup(data['opegroups'][i]);
|
||||
} else if (data['opegroups'][i]['cancellation']) {
|
||||
if (data['opegroups'][i]['cancellation']) {
|
||||
khistory.cancelOpeGroup(data['opegroups'][i]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue