Ticket #6670: model.diff

File model.diff, 0.6 kB (added by kriszyp, 8 months ago)

Patch for the model.js

  • _data/model.js

     
    656656                        this._setupFields(storeItem); 
    657657                } 
    658658                var row = this._createRow(storeItem); 
     659                for (var i in this._rowIdentities) { //increment all the remaining row ids up one 
     660                        var rowIdentity = this._rowIdentities[i]; 
     661                        if (rowIdentity.rowId >= index) { 
     662                                rowIdentity.rowId++; 
     663                        } 
     664                } 
    659665                this._setRowId(storeItem, 0, index); 
    660666                dojox.grid._data.Dynamic.prototype.insert.apply(this, [row, index]); 
    661667        },