restaured loading gif when new tab is shown (BrowseWarningPaste)

This commit is contained in:
Mokaddem 2016-08-09 12:07:20 +02:00
parent a80f6ca0c2
commit e2ba4060ee

View file

@ -153,7 +153,7 @@ $('.nav-tabs a').on('shown.bs.tab', function(event){
var dataPath = $(event.target).attr('data-attribute-name'); var dataPath = $(event.target).attr('data-attribute-name');
$.get("{{ url_for('importantPasteByModule') }}"+"?moduleName="+dataPath, function(data, status){ $.get("{{ url_for('importantPasteByModule') }}"+"?moduleName="+dataPath, function(data, status){
var currentTab = $('[name].active').children(); var currentTab = $('[name].active').children();
$('#'+previous_tab.attr('data-attribute-name')+'-tab').html(""); $('#'+previous_tab.attr('data-attribute-name')+'-tab').html(loading_gif);
currentTab.removeClass( "active" ); currentTab.removeClass( "active" );
$('#'+dataPath+'-tab').html(data); $('#'+dataPath+'-tab').html(data);