[Jifty-commit] jifty branch, master, updated. 1.10518-21-g4061cd0

Jifty commits jifty-commit at lists.jifty.org
Mon Jun 6 11:32:18 EDT 2011


The branch, master has been updated
       via  4061cd0dd01153293d627f9246c344ac27a3ec1a (commit)
      from  7697c16f4916c0eab864153a58c6a3007bdb7c9a (commit)

Summary of changes:
 share/web/static/js/jifty.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 4061cd0dd01153293d627f9246c344ac27a3ec1a
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Jun 6 11:31:33 2011 -0400

    Make full page refresh notifications sticky
    
    Otherwise, they tend to get lost in the page load and then disappear on
    you.

diff --git a/share/web/static/js/jifty.js b/share/web/static/js/jifty.js
index 7427431..a17c4a8 100644
--- a/share/web/static/js/jifty.js
+++ b/share/web/static/js/jifty.js
@@ -800,6 +800,10 @@ Behaviour.register({
     '#messages.jifty.results.messages, #errors.jifty.results.messages, .popup_message, .popup_error': function(e) {
         jQuery(e).hide();
     },
+    /* Make full page refresh notifications sticky so they don't get lost in the page load */
+    '#messages.jifty.results.messages .message, #errors.jifty.results.messages .message': function(e) {
+        jQuery(e).addClass('popup_sticky');
+    },
     '#messages.jifty.results.messages .message, .popup_message': function(e) {
         var sticky = jQuery(e).hasClass('popup_sticky');
         jQuery.jGrowl( e.innerHTML, {

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list