Sha256: d8f657fa8403a909125d3c9071a47342893f359af29bed64d4453288e4d37870
Contents?: true
Size: 1.43 KB
Versions: 9
Compression:
Stored size: 1.43 KB
Contents
{ onEditInForm: function(){ var selModel = this.getSelectionModel(); if (selModel.getCount() > 1) { var recordId = selModel.selected.first().getId(); this.loadNetzkeComponent({name: "multi_edit_form", params: {record_id: recordId}, callback: function(w){ w.show(); var form = w.items.first(); form.on('apply', function(){ var ids = []; selModel.selected.each(function(r){ ids.push(r.getId()); }); if (!form.baseParams) form.baseParams = {}; form.baseParams.ids = Ext.encode(ids); }, this); w.on('close', function(){ if (w.closeRes === "ok") { this.store.load(); } }, this); }, scope: this}); } else { var recordId = selModel.selected.first().getId(); this.loadNetzkeComponent({name: "edit_form", params: {record_id: recordId}, callback: function(w){ w.show(); w.on('close', function(){ if (w.closeRes === "ok") { this.store.load(); } }, this); }, scope: this}); } }, onAddInForm: function(){ this.loadNetzkeComponent({name: "add_form", callback: function(w){ w.show(); w.on('close', function(){ if (w.closeRes === "ok") { this.store.load(); } }, this); }, scope: this}); } }
Version data entries
9 entries across 9 versions & 2 rubygems