eslint the merged code
This commit is contained in:
parent
c08f229318
commit
bb80eea9d4
@ -144,25 +144,25 @@ function updateTooltipForSelect(select){
|
|||||||
|
|
||||||
select.onchange = function() {
|
select.onchange = function() {
|
||||||
select.title = localization[titles[select.value]] || titles[select.value] || "";
|
select.title = localization[titles[select.value]] || titles[select.value] || "";
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
observedTooltipElements = {"SPAN": 1, "BUTTON": 1, "SELECT": 1, "P": 1}
|
var observedTooltipElements = {SPAN: 1, BUTTON: 1, SELECT: 1, P: 1};
|
||||||
|
|
||||||
onUiUpdate(function(m) {
|
onUiUpdate(function(m) {
|
||||||
m.forEach(function(record) {
|
m.forEach(function(record) {
|
||||||
record.addedNodes.forEach(function(node) {
|
record.addedNodes.forEach(function(node) {
|
||||||
if (observedTooltipElements[node.tagName]) {
|
if (observedTooltipElements[node.tagName]) {
|
||||||
updateTooltipForSpan(node)
|
updateTooltipForSpan(node);
|
||||||
}
|
}
|
||||||
if (node.tagName == "SELECT") {
|
if (node.tagName == "SELECT") {
|
||||||
updateTooltipForSelect(node)
|
updateTooltipForSelect(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.querySelectorAll) {
|
if (node.querySelectorAll) {
|
||||||
node.querySelectorAll('span, button, select, p').forEach(updateTooltipForSpan)
|
node.querySelectorAll('span, button, select, p').forEach(updateTooltipForSpan);
|
||||||
node.querySelectorAll('select').forEach(updateTooltipForSelect)
|
node.querySelectorAll('select').forEach(updateTooltipForSelect);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
|
@ -442,7 +442,7 @@ function updateImg2imgResizeToTextAfterChangingImage() {
|
|||||||
gradioApp().getElementById('img2img_update_resize_to').click();
|
gradioApp().getElementById('img2img_update_resize_to').click();
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
return []
|
return [];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user