app/assets/javascripts/thin_man.js in thin_man-0.19.8 vs app/assets/javascripts/thin_man.js in thin_man-0.19.9

- old
+ new

@@ -177,11 +177,11 @@ $(this).focus(); } }); } if(this.scroll_to){ - if(this.target.not(':visible')){ + if(this.target.is(':hidden')){ if(this.target.parents('[data-tab-id]').length > 0){ this.target.parents('[data-tab-id]').each(function(){ var tab_key = $(this).data('tab-id') $('[data-tab-target-id="' + tab_key + '"]').trigger('click') }) @@ -406,10 +406,10 @@ init: function(target,alt,progress_color){ if(target.length > 0 && target.is(':visible') && target.css('display') != 'inline' && target.css('display') != 'inline-block'){ this.progress_target = target; } else if(typeof(alt) != 'undefined' && alt.is(':visible')) { this.progress_target = alt; - } else if(target.not(':visible')){ + } else if(target.length > 0 && target.is(':hidden')){ this.progress_target = $('') } else { this.progress_target = $('body'); } if(typeof(progress_color) == 'undefined'){