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

Jifty commits jifty-commit at lists.jifty.org
Wed Jun 10 21:38:48 EDT 2009


Author: sartak
Date: Wed Jun 10 21:38:48 2009
New Revision: 7229

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

Log:
Make the jGrowl popups sticky only if the popup_sticky class is present

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 Jun 10 21:38:48 2009
@@ -772,14 +772,16 @@
         jQuery(e).hide();
     },
     '#messages.jifty.results.messages .message, .popup_message': function(e) {
+        var sticky = jQuery(e).hasClass('popup_sticky');
         jQuery.jGrowl( e.innerHTML, {
-            sticky: true,
+            sticky: sticky,
             theme: 'result-message'
         });
     },
     '#errors.jifty.results.messages .error, .popup_error': function(e) {
+        var sticky = jQuery(e).hasClass('popup_sticky');
         jQuery.jGrowl( e.innerHTML, {
-            sticky: true,
+            sticky: sticky,
             theme: 'result-error'
         });
     }


More information about the Jifty-commit mailing list