comparison app/view/window/OrtCreate.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 6a6d1b02a1a3
children 7267bae1d43f
comparison
equal deleted inserted replaced
708:2ad36c8db968 709:6f6d2df00130
36 handler: this.close 36 handler: this.close
37 }]; 37 }];
38 this.width = 900; 38 this.width = 900;
39 this.height = 515; 39 this.height = 515;
40 this.bodyStyle = {background: '#fff'}; 40 this.bodyStyle = {background: '#fff'};
41
42 // add listeners to change the window appearence when it becomes inactive
43 this.on({
44 activate: function(){
45 this.getEl().removeCls('window-inactive');
46 },
47 deactivate: function(){
48 this.getEl().addCls('window-inactive');
49 }
50 });
41 51
42 this.items = [{ 52 this.items = [{
43 region: 'west', 53 region: 'west',
44 border: 0, 54 border: 0,
45 layout: 'vbox', 55 layout: 'vbox',

http://lada.wald.intevation.org