Browse Source

Fixes #1840, tab with ajax does not hide content correctly

pull/1875/head
jlukic 10 years ago
parent
commit
15f1add38b
1 changed files with 6 additions and 6 deletions
  1. 12
      src/definitions/modules/tab.js

12
src/definitions/modules/tab.js

@ -370,22 +370,22 @@ $.fn.tab = function(parameters) {
cachedContent = module.cache.read(fullTabPath);
module.activate.tab(tabPath);
if(settings.cache && cachedContent) {
module.debug('Showing existing content', fullTabPath);
module.content.update(tabPath, cachedContent);
module.activate.tab(tabPath);
settings.onTabLoad.call($tab, tabPath, parameterArray, historyEvent);
}
else if(existingRequest) {
module.debug('Content is already loading', fullTabPath);
$tab
.addClass(className.loading)
;
$tab.addClass(className.loading);
}
else if($.api !== undefined) {
requestSettings = $.extend(true, { headers: { 'X-Remote': true } }, settings.apiSettings, apiSettings);
requestSettings = $.extend(true, {
headers: { 'X-Remote': true }
}, settings.apiSettings, apiSettings);
module.debug('Retrieving remote content', fullTabPath, requestSettings);
console.log(existingRequest, requestSettings, cachedContent);
$tab.api( requestSettings );
}
else {

Loading…
Cancel
Save