[Jifty-commit] r1166 - in jifty: trunk/share/web/static/js

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Jun 5 14:17:18 EDT 2006


Author: nelhage
Date: Mon Jun  5 14:17:07 2006
New Revision: 1166

Modified:
   jifty/   (props changed)
   jifty/trunk/share/web/static/js/jifty.js

Log:
 r6843 at phanatique:  nelhage | 2006-06-05 14:16:34 -0400
 Blurring elements before we disable them


Modified: jifty/trunk/share/web/static/js/jifty.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty.js	(original)
+++ jifty/trunk/share/web/static/js/jifty.js	Mon Jun  5 14:17:07 2006
@@ -156,6 +156,7 @@
 
     disable_input_fields: function() {
 	this.fields().each(function() {
+		arguments[0].blur();
 		arguments[0].disabled = true;
 	    });
     }
@@ -406,7 +407,7 @@
     for (var i = 0; i < named_args['actions'].length; i++) {
         var moniker = named_args['actions'][i];
         var a = new Action(moniker);
-	a.disable_input_fields();
+        a.disable_input_fields();
         if (a.register) {
             if (a.hasUpload())
                 return true;
@@ -615,6 +616,8 @@
         new Effect.Fade('jifty-wait-message', {duration: 0.2});
 }
 
+
+
 Jifty.Autocompleter = Class.create();
 Object.extend(Object.extend(Jifty.Autocompleter.prototype, Ajax.Autocompleter.prototype), {
   initialize: function(field, div) {


More information about the Jifty-commit mailing list