mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 22:53:25 +03:00
hints: don't process elements that already have a title
This commit is contained in:
parent
5e4a0e3d24
commit
13d8d65ef9
@ -118,7 +118,9 @@ titles = {
|
||||
|
||||
onUiUpdate(function(){
|
||||
gradioApp().querySelectorAll('span, button, select, p').forEach(function(span){
|
||||
tooltip = titles[span.textContent];
|
||||
if (span.title) return; // already has a title
|
||||
|
||||
let tooltip = titles[span.textContent];
|
||||
|
||||
if(!tooltip){
|
||||
tooltip = titles[span.value];
|
||||
|
Loading…
Reference in New Issue
Block a user