Sha256: 686d876982cb37fb979c00f5db5e9c1d552ce7eae36f770dd8f25755f9549347
Contents?: true
Size: 660 Bytes
Versions: 9
Compression:
Stored size: 660 Bytes
Contents
{ netzkeRememberSelection: function(selModel, selectedRecords) { if (!this.rendered || Ext.isEmpty(this.el)) { return; } this.selectedRecords = this.getSelectionModel().getSelection(); }, netzkeRestoreSelection: function() { if (!this.selectedRecords || 0 >= this.selectedRecords.length) { return; } var newRecordsToSelect = []; for (var i = 0; i < this.selectedRecords.length; i++) { record = this.getStore().getById(this.selectedRecords[i].getId()); if (!Ext.isEmpty(record)) { newRecordsToSelect.push(record); } } this.getSelectionModel().select(newRecordsToSelect); } }
Version data entries
9 entries across 9 versions & 1 rubygems