Sha256: bf3a8cb4465485ab041167b4fdf4ee90d01ca24ef4b3d0cf6cb32fa9ebf5694b
Contents?: true
Size: 1.43 KB
Versions: 20
Compression:
Stored size: 1.43 KB
Contents
{ onEditInForm: function(){ var selModel = this.getSelectionModel(); if (selModel.getCount() > 1) { var recordId = selModel.selected.first().getId(); this.netzkeLoadComponent("multi_edit_window", { 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.netzkeLoadComponent("edit_window", { clientConfig: {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.netzkeLoadComponent("add_window", {callback: function(w){ w.show(); w.on('close', function(){ if (w.closeRes === "ok") { this.store.load(); } }, this); }, scope: this}); } }
Version data entries
20 entries across 20 versions & 1 rubygems