BatchJobUpdateExpressionWindow.js (695B)
1 Ext.define("PartKeepr.Components.BatchJob.BatchJobUpdateExpressionWindow", { 2 extend: "Ext.window.Window", 3 modal: true, 4 layout: 'fit', 5 title: i18n("Add Filter Expression"), 6 sourceModel: null, 7 8 initComponent: function () 9 { 10 this.items = { 11 xtype: "partkeepr.batchjobupdateexpression", 12 sourceModel: this.sourceModel, 13 listeners: { 14 "applyexpression": this.onApplyExpression, 15 scope: this 16 } 17 }; 18 this.callParent(arguments); 19 }, 20 21 onApplyExpression: function (field, value) 22 { 23 this.fireEvent("applyexpression", field, value); 24 this.close(); 25 } 26 });