mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
39274b0c5d
commit
6a8cf1b768
@ -71,7 +71,7 @@
|
|||||||
var buttons = this.options.buttons || [];
|
var buttons = this.options.buttons || [];
|
||||||
|
|
||||||
if (this.options.addButton !== false) {
|
if (this.options.addButton !== false) {
|
||||||
var addLabel, addTittle;
|
var addLabel, addTitle;
|
||||||
if (typeof this.options.addButton === 'string') {
|
if (typeof this.options.addButton === 'string') {
|
||||||
addLabel = this.options.addButton
|
addLabel = this.options.addButton
|
||||||
} else {
|
} else {
|
||||||
@ -102,7 +102,7 @@
|
|||||||
button.click(evt);
|
button.click(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (button.title) {
|
if (button.title) {
|
||||||
element.attr("title", button.title);
|
element.attr("title", button.title);
|
||||||
}
|
}
|
||||||
@ -113,7 +113,7 @@
|
|||||||
element.append($("<span></span>").text(" " + button.label));
|
element.append($("<span></span>").text(" " + button.label));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.element.css("position") === "absolute") {
|
if (this.element.css("position") === "absolute") {
|
||||||
["top","left","bottom","right"].forEach(function(s) {
|
["top","left","bottom","right"].forEach(function(s) {
|
||||||
var v = that.element.css(s);
|
var v = that.element.css(s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user