[icinga-checkins] icinga.org: icinga-web/r1.8: Fixed presets of commandHandler not being shown

git at icinga.org git at icinga.org
Mon Jan 14 11:15:14 CET 2013


Module: icinga-web
Branch: r1.8
Commit: d7d5e74c1f34f13b2e2b275f3b62ec8a1187a328
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=d7d5e74c1f34f13b2e2b275f3b62ec8a1187a328

Author: Jannis Moßhammer <jannis.mosshammer at netways.de>
Date:   Tue Dec 18 17:48:16 2012 +0100

Fixed presets of commandHandler not being shown

---

 .../Cronks/lib/js/Cronk/grid/CommandHandler.js     |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Cronk/grid/CommandHandler.js b/app/modules/Cronks/lib/js/Cronk/grid/CommandHandler.js
index 091eb1a..ec82f9e 100644
--- a/app/modules/Cronks/lib/js/Cronk/grid/CommandHandler.js
+++ b/app/modules/Cronks/lib/js/Cronk/grid/CommandHandler.js
@@ -136,7 +136,7 @@ Ext.ns('Cronk.grid');
                 width: 200,
                 allowBlank: !o.fieldRequired
             };
-            AppKit.log(oDef);
+
             var data = [];
 
             var form = o.form;
@@ -199,16 +199,21 @@ Ext.ns('Cronk.grid');
             case 'checkbox':
                 Ext.apply(oDef, {
                     name: o.fieldName + '-group',
-                    columns: 2,
+                    layout: 'column',
                     items: [{
+                        xtype: 'radio',
                         boxLabel: _('Yes'),
                         inputValue: 1,
-                        name: o.fieldName
+                        columnWidth: 0.5,
+                        name: o.fieldName,
+                        checked: o.fieldValue === "true"
                     }, {
+                        xtype: 'radio',
                         boxLabel: _('No'),
                         inputValue: 0,
                         name: o.fieldName,
-                        checked: true
+                        columnWidth: 0.5,
+                        checked: o.fieldValue !== "true"
                     }]
                 });
                 if (o.fieldName === "fixed") {
@@ -226,7 +231,7 @@ Ext.ns('Cronk.grid');
                         }
                     };
                 }
-                return new Ext.form.RadioGroup(oDef);
+                return new Ext.Container(oDef);
 
 
             case 'duration':





More information about the icinga-checkins mailing list