From: <rp...@hy...> - 2008-05-15 17:53:29
|
Author: rpack Date: 2008-05-15 10:53:22 -0700 (Thu, 15 May 2008) New Revision: 9573 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=9573 Modified: trunk/web/js/tap-dojo/tap-dojo1.1.js Log: Added form method Modified: trunk/web/js/tap-dojo/tap-dojo1.1.js =================================================================== --- trunk/web/js/tap-dojo/tap-dojo1.1.js 2008-05-15 17:51:48 UTC (rev 9572) +++ trunk/web/js/tap-dojo/tap-dojo1.1.js 2008-05-15 17:53:22 UTC (rev 9573) @@ -438,6 +438,24 @@ } }, + /** + * Function: setFormValidating + * + * If a form registered with the specified formId + * exists a local property will be set that causes + * validation to be turned on/off depending on the argument. + * + * Parameters: + * + * formId - The id of the form to turn validation on/off for. + * validate - Boolean for whether or not to validate form, if not specified assumes true. + */ + setFormValidating:function(formId, validate){ + if (this.forms[formId]){ + this.forms[formId].validateForm = validate; + } + }, + submitAsync:function(form, content, submitName, parms){ form=dojo.byId(form); if (!form) { |