Skip to content

Instantly share code, notes, and snippets.

@c9s
Created June 5, 2009 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c9s/124092 to your computer and use it in GitHub Desktop.
Save c9s/124092 to your computer and use it in GitHub Desktop.
Index: lib/Jifty/Web.pm
===================================================================
--- lib/Jifty/Web.pm (revision 6773)
+++ lib/Jifty/Web.pm (working copy)
@@ -995,6 +995,11 @@
%results = ($only_moniker => $results{$only_moniker}) if $only_moniker;
return unless grep {$_->$type()} values %results;
+
+ # * skip render notification message if we are in in fragments, the notification
+ # will show up from jifty.update function
+ # * for non-region updates , we render the messages and app_behaviour
+ # transform the message to jQuery Growl
+ return if( $self->current_region );
my $plural = $type . "s";
$self->out(qq{<div class="jifty results messages" id="$plural">});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment