Sha256: f6854d74440c84de21196e1f3351e897c394c8f7d174e6084187ad36b1550dc1
Contents?: true
Size: 1.76 KB
Versions: 26
Compression:
Stored size: 1.76 KB
Contents
Ext.define("Compass.ErpApp.Desktop.Applications.Knitkit.InquiriesGridPanel",{ extend:"Compass.ErpApp.Shared.DynamicEditableGridLoaderPanel", alias:'widget.knitkit_inquiriesgridpanel', deleteInquiry : function(rec){ var self = this; Ext.getCmp('knitkitCenterRegion').setWindowStatus('Deleting inquiry...'); Ext.Ajax.request({ url: '/knitkit/erp_app/desktop/inquiries/delete', method: 'POST', params:{ id:rec.get("id") }, success: function(response) { var obj = Ext.decode(response.responseText); if(obj.success){ Ext.getCmp('knitkitCenterRegion').clearWindowStatus(); self.query('shared_dynamiceditablegrid')[0].store.load(); } else{ Ext.Msg.alert('Error', 'Error deleting inquiry'); Ext.getCmp('knitkitCenterRegion').clearWindowStatus(); } }, failure: function(response) { Ext.getCmp('knitkitCenterRegion').clearWindowStatus(); Ext.Msg.alert('Error', 'Error deleting inquiry'); } }); }, constructor : function(config) { config = Ext.apply({ id:'InquiriesGridPanel', title:'Website Inquiries', dataUrl: '/knitkit/erp_app/desktop/inquiries/get/' + config['websiteId'], setupUrl: '/knitkit/erp_app/desktop/inquiries/setup', editable:false, page:true, pageSize:20, displayMsg:'Displaying {0} - {1} of {2}', emptyMsg:'Empty' }, config); this.callParent([config]); } });
Version data entries
26 entries across 26 versions & 1 rubygems