[icinga-checkins] icinga.org: icinga-web/next: Fix operator handling in Grid filter window ( refs #3912)

git at icinga.org git at icinga.org
Tue Apr 2 16:21:06 CEST 2013


Module: icinga-web
Branch: next
Commit: 5b8070d5531fa28c90fe1f2bb47ae476593e2f66
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=5b8070d5531fa28c90fe1f2bb47ae476593e2f66

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Tue Apr  2 16:13:43 2013 +0200

Fix operator handling in Grid filter window (refs #3912)

the operator always were default when opening the filter, and
not the saved setting

---

 .../Cronks/lib/js/Cronk/grid/filter/Handler.js     |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Cronk/grid/filter/Handler.js b/app/modules/Cronks/lib/js/Cronk/grid/filter/Handler.js
index 021285d..1c67fa9 100644
--- a/app/modules/Cronks/lib/js/Cronk/grid/filter/Handler.js
+++ b/app/modules/Cronks/lib/js/Cronk/grid/filter/Handler.js
@@ -266,7 +266,8 @@ Ext.ns('Cronk.grid.filter');
 
             // Set the default value after rendering
             oCombo.on('render', function (c) {
-                c.setValue(this.oOpDefault[type]);
+                if(!c.getValue())
+                    c.setValue(this.oOpDefault[type]);
             }, this);
 
             // Pack all together in a container





More information about the icinga-checkins mailing list