PageSourceSearch

https://eproc.poscofuturem.com:8449/pct/js/dhtmlx3/ext/dhtmlxgrid_undo.js

js poscofuturem.com collected 2026-09-25 04:00:13 UTC 2,002 bytes, 18 lines download raw bytes

1//v.3.6 build 131108
2
3/*
4Copyright DHTMLX LTD. http://www.dhtmlx.com
5To use this component please contact [email protected] to obtain license
6*/
7dhtmlXGridObject.prototype.enableUndoRedo=function(){var a=this,b=function(){return a._onEditUndoRedo.apply(a,arguments)};this.attachEvent("onEditCell",b);var e=function(b,c,d){return a._onEditUndoRedo.apply(a,[2,b,c,d?1:0,d?0:1])};this.attachEvent("onCheckbox",e);this._IsUndoRedoEnabled=!0;this._UndoRedoData=[];this._UndoRedoPos=-1};dhtmlXGridObject.prototype.disableUndoRedo=function(){this._IsUndoRedoEnabled=!1;this._UndoRedoData=[];this._UndoRedoPos=-1};
8dhtmlXGridObject.prototype._onEditUndoRedo=function(a,b,e,f,c){if(this._IsUndoRedoEnabled&&a==2&&c!=f){if(this._UndoRedoPos!==-1&&this._UndoRedoPos!=this._UndoRedoData.length-1)this._UndoRedoData=this._UndoRedoData.slice(0,this._UndoRedoPos+1);else if(this._UndoRedoPos===-1&&this._UndoRedoData.length>0)this._UndoRedoData=[];var d={old_value:c,new_value:f,row_id:b,cell_index:e};this._UndoRedoData.push(d);this._UndoRedoPos++}return!0};
9dhtmlXGridObject.prototype.doUndo=function(){if(this._UndoRedoPos===-1)return!1;var a=this._UndoRedoData[this._UndoRedoPos--],b=this.cells(a.row_id,a.cell_index);this.getColType(a.cell_index)=="tree"?b.setLabel(a.old_value):b.setValue(a.old_value);this.callEvent("onUndo",[a.row_id])};
10dhtmlXGridObject.prototype.doRedo=function(){if(this._UndoRedoPos==this._UndoRedoData.length-1)return!1;var a=this._UndoRedoData[++this._UndoRedoPos];this.cells(a.row_id,a.cell_index).setValue(a.new_value);this.callEvent("onUndo",[a.row_id])};dhtmlXGridObject.prototype.getRedo=function(){return this._UndoRedoPos==this._UndoRedoData.length-1?[]:this._UndoRedoData.slice(this._UndoRedoPos+1)};
11dhtmlXGridObject.prototype.getUndo=function(){return this._UndoRedoPos==-1?[]:this._UndoRedoData.slice(0,this._UndoRedoPos+1)};
12
13//v.3.6 build 131108
14
15/*
16Copyright DHTMLX LTD. http://www.dhtmlx.com
17To use this component please contact [email protected] to obtain license
18*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.