Save/restore tabs

This commit is contained in:
Nicholas O'Leary
2013-10-25 21:34:00 +01:00
parent f3e33f4c29
commit 3604286793
5 changed files with 115 additions and 67 deletions

View File

@@ -72,6 +72,10 @@ RED.tabs = function() {
if (options.onadd) {
options.onadd(tab);
}
link.attr("title",tab.label);
if (ul.find("li.red-ui-tab").size() == 1) {
activateTab(link);
}
},
activateTab: activateTab,
resize: updateTabWidths