mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-22 07:10:51 -08:00
hints: don't process elements that already have a title
This commit is contained in:
@@ -118,7 +118,9 @@ titles = {
|
|||||||
|
|
||||||
onUiUpdate(function(){
|
onUiUpdate(function(){
|
||||||
gradioApp().querySelectorAll('span, button, select, p').forEach(function(span){
|
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){
|
if(!tooltip){
|
||||||
tooltip = titles[span.value];
|
tooltip = titles[span.value];
|
||||||
|
|||||||
Reference in New Issue
Block a user