You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by an...@apache.org on 2007/09/13 15:41:45 UTC

svn commit: r575310 - /tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/form.js

Author: andyhot
Date: Thu Sep 13 06:41:45 2007
New Revision: 575310

URL: http://svn.apache.org/viewvc?rev=575310&view=rev
Log:
TAPESTRY-1692: use try-catch in tapestry.form.focusField

Modified:
    tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/form.js

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/form.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/form.js?rev=575310&r1=575309&r2=575310&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/form.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/form.js Thu Sep 13 06:41:45 2007
@@ -39,7 +39,7 @@
 	 */
 	focusField:function(field){
 		if (arguments.length < 1) {return;}
-		
+		try{
 		var f=dojo.widget.byId(field);
 		if(f && !dj_undef("focus", f)){
 			if (dojo.html.isVisible(f)){
@@ -60,7 +60,7 @@
 			return;
 		}
 		
-        dojo.html.selectInputText(field);
+        dojo.html.selectInputText(field);} catch(e){dojo.log.debug(e);}
 	},
 	
 	/**