[Jifty-commit] r4950 - jifty/branches/jquery/share/web/static/js

Jifty commits jifty-commit at lists.jifty.org
Sun Jan 27 07:20:06 EST 2008


Author: gugod
Date: Sun Jan 27 07:20:05 2008
New Revision: 4950

Modified:
   jifty/branches/jquery/share/web/static/js/jifty.js

Log:
Unbreak the (X) button in message. Fix one runtime error in
Jifty.Effect when variable "options" is null.


Modified: jifty/branches/jquery/share/web/static/js/jifty.js
==============================================================================
--- jifty/branches/jquery/share/web/static/js/jifty.js	(original)
+++ jifty/branches/jquery/share/web/static/js/jifty.js	Sun Jan 27 07:20:05 2008
@@ -761,7 +761,7 @@
     ".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="Effect.Fade(this.parentNode); return false;">Dismiss</a>')
+            .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" );
 
         }
@@ -1636,6 +1636,7 @@
         } catch ( e ) {}
     }
 
+    if (options == null) options = {};
     // jQuery built-ins
     var effect =
         name == 'Fade' ? 'fadeOut' :


More information about the Jifty-commit mailing list