comparison app/view/window/OrtEdit.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 e88381fb3bdb
children 6bc05ba2f6b1
comparison
equal deleted inserted replaced
708:2ad36c8db968 709:6f6d2df00130
48 handler: this.close 48 handler: this.close
49 }]; 49 }];
50 this.width = 900; 50 this.width = 900;
51 this.height = 515; 51 this.height = 515;
52 this.bodyStyle = {background: '#fff'}; 52 this.bodyStyle = {background: '#fff'};
53
54 // add listeners to change the window appearence when it becomes inactive
55 this.on({
56 activate: function(){
57 this.getEl().removeCls('window-inactive');
58 },
59 deactivate: function(){
60 this.getEl().addCls('window-inactive');
61 }
62 });
53 63
54 this.items = [{ 64 this.items = [{
55 region: 'west', 65 region: 'west',
56 border: 0, 66 border: 0,
57 layout: 'vbox', 67 layout: 'vbox',

http://lada.wald.intevation.org