Skip to content

Commit

Permalink
Fix after save bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mojowen committed Sep 30, 2015
1 parent 164183d commit ef575a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/SalsaPress.js
Expand Up @@ -282,8 +282,10 @@ var count = 0;
self.notice(objectL10n.success,'success'); self.notice(objectL10n.success,'success');


if( typeof self.attr('redirect_path') != 'undefined' && self.attr('redirect_path').length > 0 ) document.location = self.attr('redirect_path'); 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.nextAll('.after_save').show();
self.remove(); self.remove();
} else { } else {
Expand Down Expand Up @@ -328,4 +330,4 @@ jQuery(document).ready( function($) {


$('.salsa-form').salsaformed(); $('.salsa-form').salsaformed();


}); });

0 comments on commit ef575a0

Please sign in to comment.