[icinga-checkins] icinga.org: icinga-web/master: * Fixed disabled checkbox mapping in role editor

git at icinga.org git at icinga.org
Wed Nov 23 13:14:15 CET 2011


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

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Wed Nov 23 13:13:57 2011 +0100

* Fixed disabled checkbox mapping in role editor

---

 app/modules/AppKit/lib/js/admin/RoleEditForm.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/app/modules/AppKit/lib/js/admin/RoleEditForm.js b/app/modules/AppKit/lib/js/admin/RoleEditForm.js
index e67ec12..1ac1a51 100644
--- a/app/modules/AppKit/lib/js/admin/RoleEditForm.js
+++ b/app/modules/AppKit/lib/js/admin/RoleEditForm.js
@@ -20,7 +20,14 @@ AppKit.Admin.RoleEditForm = function(cfg) {
             'id',
             'name',
             'description',
-            {name: 'disabled', type:'boolean'},
+            {
+                name: 'disabled',
+                type:'boolean',
+                mapping: 'active',
+                convert: function(v) {
+                    return !v;
+                }
+            },
             'modified',
             'created',
             'users',





More information about the icinga-checkins mailing list