[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Added address6 field, cronklisting now doesn't reopen already existing tabs

git at icinga.org git at icinga.org
Sun Mar 20 11:26:09 CET 2011


Module: icinga-web
Branch: jmosshammer/default
Commit: b2b9fc81c221cc7cc979836673b70b64693e1bba
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=b2b9fc81c221cc7cc979836673b70b64693e1bba

Author: jmosshammer <jmosshammer at debian.localhost>
Date:   Fri Feb 11 10:34:21 2011 +0100

* Added address6 field, cronklisting now doesn't reopen already existing tabs

---

 app/modules/Cronks/lib/js/CronkListingPanel.js  |    7 +++----
 app/modules/Web/config/simple_data_provider.xml |    6 +++++-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/app/modules/Cronks/lib/js/CronkListingPanel.js b/app/modules/Cronks/lib/js/CronkListingPanel.js
index d963895..6923ac4 100644
--- a/app/modules/Cronks/lib/js/CronkListingPanel.js
+++ b/app/modules/Cronks/lib/js/CronkListingPanel.js
@@ -554,7 +554,7 @@ Ext.extend(Cronk.util.CronkListingPanel, Ext.Panel, {
 		var tabPanel = Ext.getCmp('cronk-tabs');
 	
 		if (tabPanel) {
-			var panel = tabPanel.add({
+			var cronk = {
 				xtype: 'cronk',
 				iconCls: Cronk.getIconClass(record.data['image_id']),
 				title: record.data['name'],
@@ -565,9 +565,8 @@ Ext.extend(Cronk.util.CronkListingPanel, Ext.Panel, {
 					module: record.data.module, 
 					action: record.data.action 
 				})
-			});
-			
-			tabPanel.setActiveTab(panel);
+			};
+			Cronk.util.InterGridUtil.gridFilterLink(cronk, {});
 		}
 	},
 	
diff --git a/app/modules/Web/config/simple_data_provider.xml b/app/modules/Web/config/simple_data_provider.xml
index 2031303..3b27f54 100755
--- a/app/modules/Web/config/simple_data_provider.xml
+++ b/app/modules/Web/config/simple_data_provider.xml
@@ -65,6 +65,7 @@
 			Locale information:
 			
 			#loc: HOST_ADDRESS
+			#loc: HOST_ADDRESS6
 			#loc: HOST_ALIAS
 			#loc: HOST_DISPLAY_NAME
 			#loc: HOST_CURRENT_STATE
@@ -95,6 +96,9 @@
 					<ae:parameter name="field">HOST_ADDRESS</ae:parameter>
 				</ae:parameter>
 				<ae:parameter>
+					<ae:parameter name="field">HOST_ADDRESS6</ae:parameter>
+				</ae:parameter>
+				<ae:parameter>
 					<ae:parameter name="field">HOST_ALIAS</ae:parameter>
 				</ae:parameter>
 				<ae:parameter>
@@ -299,4 +303,4 @@
 			</ae:parameter>
 		</ae:parameter>
 	</setting>
-</settings>
\ No newline at end of file
+</settings>





More information about the icinga-checkins mailing list