Open Codeguyross opened 8 years ago
In the this.isValueChanged function, should the args.item.to be comparing against the $to.val() instead of the $from.val()
In the code: this.isValueChanged = function () { return args.item.from != parseInt($from.val(), 10) || args.item.to != parseInt($from.val(), 10); };
Proposed changed: this.isValueChanged = function () { return args.item.from != parseInt($from.val(), 10) || args.item.to != parseInt($to.val(), 10); };
Good catch! Have made the change to my 'Alternate Master' repo: https://github.com/6pac/SlickGrid/wiki
In the this.isValueChanged function, should the args.item.to be comparing against the $to.val() instead of the $from.val()
In the code: this.isValueChanged = function () { return args.item.from != parseInt($from.val(), 10) || args.item.to != parseInt($from.val(), 10); };
Proposed changed: this.isValueChanged = function () { return args.item.from != parseInt($from.val(), 10) || args.item.to != parseInt($to.val(), 10); };