comparison app/view/window/ProbeCreate.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 d9824c49e781
comparison
equal deleted inserted replaced
708:2ad36c8db968 709:6f6d2df00130
31 this.buttons = [{ 31 this.buttons = [{
32 text: 'Schließen', 32 text: 'Schließen',
33 scope: this, 33 scope: this,
34 handler: this.close 34 handler: this.close
35 }]; 35 }];
36
37 // add listeners to change the window appearence when it becomes inactive
38 this.on({
39 activate: function(){
40 this.getEl().removeCls('window-inactive');
41 },
42 deactivate: function(){
43 this.getEl().addCls('window-inactive');
44 }
45 });
46
36 this.width = 700; 47 this.width = 700;
37 // InitialConfig is the config object passed to the constructor on 48 // InitialConfig is the config object passed to the constructor on
38 // creation of this window. We need to pass it throuh to the form as 49 // creation of this window. We need to pass it throuh to the form as
39 // we need the "modelId" param to load the correct item. 50 // we need the "modelId" param to load the correct item.
40 51

http://lada.wald.intevation.org