Permalink
Browse files

Fix after save bug

  • Loading branch information...
mojowen committed Sep 30, 2015
1 parent 164183d commit ef575a027f99a014f4a1f4197852a520488565de
Showing with 4 additions and 2 deletions.
  1. +4 −2 utils/SalsaPress.js
View
@@ -282,8 +282,10 @@ var count = 0;
self.notice(objectL10n.success,'success');
if( typeof self.attr('redirect_path') != 'undefined' && self.attr('redirect_path').length > 0 ) document.location = self.attr('redirect_path');
var after_save_html = self.nextAll('.after_save:first').html() || ''
if( self.nextAll('.after_save:first').html().length > 0 ) {
if( after_save_html.length > 0 ) {
self.nextAll('.after_save').show();
self.remove();
} else {
@@ -328,4 +330,4 @@ jQuery(document).ready( function($) {
$('.salsa-form').salsaformed();
});
});

0 comments on commit ef575a0

Please sign in to comment.