[icinga-checkins] icinga.org: icinga-web/master: * Added allowBlank= false to required Textareas (fixes #2114)

git at icinga.org git at icinga.org
Tue Feb 21 09:13:10 CET 2012


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

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Mon Feb 20 19:09:07 2012 +0100

* Added allowBlank=false to required Textareas (fixes #2114)

---

 .../Cronks/lib/js/grid/IcingaCommandHandler.js     |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js b/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js
index 279ff7c..2a6b030 100755
--- a/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js
+++ b/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js
@@ -256,8 +256,10 @@ IcingaCommandHandler.prototype = {
             break;
 
         case 'textarea':
+            
             Ext.apply(oDef, {
                 height: 120,
+                allowBlank: !(o.fieldRequired || false),
                 enableKeyEvents: true,
                 listeners: {
                     /*





More information about the icinga-checkins mailing list