Tab name changes not persisting

Fixes #495
This commit is contained in:
Nick O'Leary 2014-11-19 16:03:12 +00:00
parent 71bd5cd9e9
commit 3a78a2fedd
1 changed files with 4 additions and 4 deletions

View File

@ -117,11 +117,11 @@ RED.tabs = (function() {
contains: function(id) {
return ul.find("a[href='#"+id+"']").length > 0;
},
renameTab: function(id,name) {
tabs[id].name = name;
renameTab: function(id,label) {
tabs[id].label = label;
var tab = ul.find("a[href='#"+id+"']");
tab.attr("title",name);
tab.text(name);
tab.attr("title",label);
tab.text(label);
updateTabWidths();
}