forked from DGNum/gestioCOF
remove addition of new opegroups
This commit is contained in:
parent
b404c989ff
commit
db94a8904c
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));
|
data = $.extend({}, websocket_msg_default, JSON.parse(e.data));
|
||||||
|
|
||||||
for (var i=0; i<data['opegroups'].length; i++) {
|
for (var i=0; i<data['opegroups'].length; i++) {
|
||||||
if (data['opegroups'][i]['add'] &&
|
if (data['opegroups'][i]['cancellation']) {
|
||||||
moment(data['opegroups'][i]['at']).isBefore(moment($to_date.val()).add(15, 'minutes'))) {
|
|
||||||
khistory.addOpeGroup(data['opegroups'][i]);
|
|
||||||
} else if (data['opegroups'][i]['cancellation']) {
|
|
||||||
khistory.cancelOpeGroup(data['opegroups'][i]);
|
khistory.cancelOpeGroup(data['opegroups'][i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue