comparison app/view/window/ProbeEdit.js @ 709:6f6d2df00130

Added some CSS to make distinction between active and inactice windows more simple for the user
author Dustin Demuth <dustin@intevation.de>
date Tue, 07 Apr 2015 17:16:59 +0200
parents c632c7c34029
children f204f30b824a
comparison
equal deleted inserted replaced
708:2ad36c8db968 709:6f6d2df00130
27 autoScroll: true, 27 autoScroll: true,
28 layout: 'fit', 28 layout: 'fit',
29 constrain: true, 29 constrain: true,
30 30
31 record: null, 31 record: null,
32
33 32
34 initComponent: function() { 33 initComponent: function() {
35 if (this.record === null) { 34 if (this.record === null) {
36 Ext.Msg.alert('Keine valide Probe ausgewählt!'); 35 Ext.Msg.alert('Keine valide Probe ausgewählt!');
37 this.callParent(arguments); 36 this.callParent(arguments);
43 text: 'Schließen', 42 text: 'Schließen',
44 scope: this, 43 scope: this,
45 handler: this.close 44 handler: this.close
46 }]; 45 }];
47 this.width = 700; 46 this.width = 700;
47
48 // add listeners to change the window appearence when it becomes inactive
49 this.on({
50 activate: function(){
51 this.getEl().removeCls('window-inactive');
52 },
53 deactivate: function(){
54 this.getEl().addCls('window-inactive');
55 }
56 });
57
48 this.height = Ext.getBody().getViewSize().height - 30; 58 this.height = Ext.getBody().getViewSize().height - 30;
49 // InitialConfig is the config object passed to the constructor on 59 // InitialConfig is the config object passed to the constructor on
50 // creation of this window. We need to pass it throuh to the form as 60 // creation of this window. We need to pass it throuh to the form as
51 // we need the "modelId" param to load the correct item. 61 // we need the "modelId" param to load the correct item.
52 this.items = [{ 62 this.items = [{

http://lada.wald.intevation.org