[Jifty-commit] r7696 - jifty/trunk/share/web/static/js

Jifty commits jifty-commit at lists.jifty.org
Wed Dec 2 13:49:50 EST 2009


Author: c9s
Date: Wed Dec  2 13:49:49 2009
New Revision: 7696

Modified:
   jifty/trunk/share/web/static/js/jifty.js

Log:
semicolon fixs.

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	Wed Dec  2 13:49:49 2009
@@ -623,16 +623,16 @@
     buttonArguments: function(element) {
         element = Jifty.$(element);
         if (!element)
-            return {}
+            return {};
 
         if (((element.nodeName != 'INPUT') || (element.getAttribute("type") != "submit"))
          && ((element.nodeName != 'A')     || (! element.getAttribute("name"))))
-            return {}
+            return {};
 
         if (element.getAttribute("name").length == 0)
-            return {}
+            return {};
 
-        var extras = {}
+        var extras = {};
 
         // Split other arguments out, if we're on a button
         var pairs = element.getAttribute("name").split("|");
@@ -764,9 +764,9 @@
     },
     ".messages": function(e) {
         if ( !jQuery(e).hasClass('jifty_enter_handler_attached') ) {
-            jQuery(e)
-            .prepend('<a  href="#" id="dismiss_'+e.id+'" title="Dismiss" onmousedown="this.onfocus=this.blur;" onmouseup="this.onfocus=window.clientInformation?null:window.undefined" onclick="Jifty.Effect(this.parentNode, \'Fade\'); return false;">Dismiss</a>')
-            .addClass("jifty_enter_handler_attached" );
+            jQuery(e).prepend(
+                '<a  href="#" id="dismiss_'+e.id+'" title="Dismiss" onmousedown="this.onfocus=this.blur;" onmouseup="this.onfocus=window.clientInformation?null:window.undefined" onclick="Jifty.Effect(this.parentNode, \'Fade\'); return false;">Dismiss</a>'
+                ).addClass("jifty_enter_handler_attached" );
 
         }
     },
@@ -1702,7 +1702,7 @@
     }
 
     /* This is a workaround for Safari, which does not support textContent */
-    var text = result.textContent
+    var text = result.textContent 
                     ? result.textContent
                     : (result.firstChild ? result.firstChild.nodeValue : '');
 
@@ -1733,10 +1733,8 @@
             self.changed  = true;
             self.hasFocus = true;
             Jifty.current_autocompleter_object = self;
-            autocomplete_div.append(jQuery('#autocompleteHelper'))
-            .show();
-        })
-        .blur(function() { autocomplete_div.hide() });
+            autocomplete_div.append(jQuery('#autocompleteHelper')).show();
+        }).blur(function() { autocomplete_div.hide() });
         
         jQuery(this.field).Autocomplete({
             source: this.url,


More information about the Jifty-commit mailing list