[icinga-checkins] icinga.org: icinga-web/master: * Connection selector is now only shown when there' s more than one connection (#refs 892)

git at icinga.org git at icinga.org
Tue Apr 17 10:43:20 CEST 2012


Module: icinga-web
Branch: master
Commit: 42c04ef3fcb9b6de236be8318ecafba96f7dd948
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=42c04ef3fcb9b6de236be8318ecafba96f7dd948

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Fri Mar 30 13:53:08 2012 +0200

* Connection selector is now only shown when there's more than one connection (#refs 892)

---

 app/modules/Cronks/lib/js/grid/GridPanel.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/lib/js/grid/GridPanel.js b/app/modules/Cronks/lib/js/grid/GridPanel.js
index 4caa8f5..71f41db 100755
--- a/app/modules/Cronks/lib/js/grid/GridPanel.js
+++ b/app/modules/Cronks/lib/js/grid/GridPanel.js
@@ -59,6 +59,7 @@ Cronk.grid.GridPanel = Ext.extend(Ext.grid.GridPanel, {
             triggerAction: 'all',
             emptyText: this.selectedConnection,
             selectOnFocus: true,
+            hidden: connArr.length < 2,
             width: 135,
             listeners: {
                 afterrender: function(me) {





More information about the icinga-checkins mailing list