Permalink
Browse files

Fixed bug where the validation manager's valid value would return nul…

…l and break the setting of the enabled value of the form

git-svn-id: https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib@21266 09f7d036-9b2a-0410-8fbe-9cff4eb17569
  • Loading branch information...
1 parent f134058 commit 6f743e14718513a38544f264750f8b2e9e641fa4 cboulanger committed Jul 1, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 source/class/dialog/Form.js
@@ -624,7 +624,9 @@ qx.Class.define("dialog.Form",
*/
_onFormReady : function( form )
{
- form.getValidationManager().bind( "valid", this._okButton, "enabled" );
+ form.getValidationManager().bind( "valid", this._okButton, "enabled", {
+ converter : function(value){return value || false;}
+ } );
},
/*

0 comments on commit 6f743e1

Please sign in to comment.