/*
Product Name: dhtmlxSuite
Version: 4.0.3
Edition: Professional
License: content of this file is covered by DHTMLX Commercial or Enterprise license. Usage without proper license is prohibited. To obtain it contact sales@dhtmlx.com
Copyright UAB Dinamenta http://www.dhtmlx.com
*/
/**
* @desc: auto counter editor
* @returns: dhtmlxGrid cell editor object
* @type: public
*/
function eXcell_cntr(cell){
this.cell = cell;
this.grid = this.cell.parentNode.grid;
if (!this.grid._ex_cntr_ready && !this._realfake){
this.grid._ex_cntr_ready=true;
if (this.grid._h2)
this.grid.attachEvent("onOpenEn",function(id){
this.resetCounter(cell._cellIndex);
});
var fix_cnt = function(){
var that=this;
window.setTimeout(function(){
if (!that.resetCounter) return;
if (that._fake && !that._realfake && cell._cellIndex