diff 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
line wrap: on
line diff
--- a/app/view/window/ProbeEdit.js	Fri Mar 27 15:54:43 2015 +0100
+++ b/app/view/window/ProbeEdit.js	Tue Apr 07 17:16:59 2015 +0200
@@ -30,7 +30,6 @@
 
     record: null,
 
-
     initComponent: function() {
         if (this.record === null) {
             Ext.Msg.alert('Keine valide Probe ausgewählt!');
@@ -45,6 +44,17 @@
             handler: this.close
         }];
         this.width = 700;
+
+        // 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.height = Ext.getBody().getViewSize().height - 30;
         // InitialConfig is the config object passed to the constructor on
         // creation of this window. We need to pass it throuh to the form as

http://lada.wald.intevation.org