[icinga-checkins] icinga.org: icinga-web/master: * Fixed some bugs

git at icinga.org git at icinga.org
Tue Nov 29 12:38:36 CET 2011


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

Author: Marius Hein <marius.hein at netways.de>
Date:   Tue Nov 29 12:38:24 2011 +0100

* Fixed some bugs

---

 .../Cronks/lib/js/Cronks/Tackle/Command/Form.js    |    4 ++++
 app/modules/Cronks/lib/js/Cronks/Tackle/Cronk.js   |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Cronks/Tackle/Command/Form.js b/app/modules/Cronks/lib/js/Cronks/Tackle/Command/Form.js
index db8f626..f24d413 100644
--- a/app/modules/Cronks/lib/js/Cronks/Tackle/Command/Form.js
+++ b/app/modules/Cronks/lib/js/Cronks/Tackle/Command/Form.js
@@ -28,6 +28,10 @@ Icinga.Cronks.Tackle.Command.Form = Ext.extend(Ext.Panel, {
 		
 		this.removeAll();
 		
+		if (this.record) {
+			this.target = this.record;
+		}
+		
 		this.form = this.formBuilder.build(commandName, {
             renderSubmit: this.standalone,
             targets: Ext.isArray(this.target) ? this.target : [this.target]
diff --git a/app/modules/Cronks/lib/js/Cronks/Tackle/Cronk.js b/app/modules/Cronks/lib/js/Cronks/Tackle/Cronk.js
index b8bfd7f..e3abc3e 100644
--- a/app/modules/Cronks/lib/js/Cronks/Tackle/Cronk.js
+++ b/app/modules/Cronks/lib/js/Cronks/Tackle/Cronk.js
@@ -81,7 +81,7 @@ Ext.ns('Icinga.Cronks.Tackle');
 
         toggleTabView: function(type) {
             var show = type;
-            var hide = type === "host" ? "service" : "hos;t"
+            var hide = (type === "host") ? "service" : "host"
 
             for(var i in this.tabItems[show]) {
                 this.infoTabs.unhideTabStripItem(this.tabItems[show][i]);





More information about the icinga-checkins mailing list