Skip to content

Commit

Permalink
FIXED: Property set tab title and icon when opened in fullscreen mode…
Browse files Browse the repository at this point in the history
… and

fullscreen mode is left.
  • Loading branch information
Jan Wielemaker committed Jun 9, 2016
1 parent 6be5818 commit 40f1b50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/js/tabbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,14 @@ var tabbed = {
*/
title: function(title, type) {
var tab = this.closest(".tab-pane");

/* if no tab, we might be in fullscreen mode */
if ( tab.length == 0 ) {
fsorg = this.data("fullscreen_origin");
if ( fsorg )
tab = $(fsorg).closest(".tab-pane");
}

var tabbed = tab.closest(".tabbed");
var id = tab.attr("id");
var ul = tabbed.tabbed('navTabs');
Expand Down

0 comments on commit 40f1b50

Please sign in to comment.