mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
71bd5cd9e9
commit
3a78a2fedd
@ -117,11 +117,11 @@ RED.tabs = (function() {
|
|||||||
contains: function(id) {
|
contains: function(id) {
|
||||||
return ul.find("a[href='#"+id+"']").length > 0;
|
return ul.find("a[href='#"+id+"']").length > 0;
|
||||||
},
|
},
|
||||||
renameTab: function(id,name) {
|
renameTab: function(id,label) {
|
||||||
tabs[id].name = name;
|
tabs[id].label = label;
|
||||||
var tab = ul.find("a[href='#"+id+"']");
|
var tab = ul.find("a[href='#"+id+"']");
|
||||||
tab.attr("title",name);
|
tab.attr("title",label);
|
||||||
tab.text(name);
|
tab.text(label);
|
||||||
updateTabWidths();
|
updateTabWidths();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user