diff 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
line wrap: on
line diff
--- a/app/view/window/OrtCreate.js	Fri Mar 27 15:54:43 2015 +0100
+++ b/app/view/window/OrtCreate.js	Tue Apr 07 17:16:59 2015 +0200
@@ -39,6 +39,16 @@
         this.height = 515;
         this.bodyStyle = {background: '#fff'};
 
+        // add listeners to change the window appearence when it becomes inactive
+        this.on({
+            activate: function(){
+                this.getEl().removeCls('window-inactive');
+            },
+            deactivate: function(){
+                this.getEl().addCls('window-inactive');
+            }
+        });
+
         this.items = [{
             region: 'west',
             border: 0,

http://lada.wald.intevation.org