Skip to content

Commit

Permalink
Fixed bug where the validation manager's valid value would return nul…
Browse files Browse the repository at this point in the history
…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
cboulanger committed Jul 1, 2011
1 parent f134058 commit 6f743e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/class/dialog/Form.js
Expand Up @@ -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;}
} );
},

/*
Expand Down

0 comments on commit 6f743e1

Please sign in to comment.