Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
9e737cba
Commit
9e737cba
authored
Sep 26, 2022
by
Alexandre Simard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solve issue #962
Fix by @MrAcademy
parent
78d6aef3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
.gitignore
.gitignore
+2
-1
javascript/ui.js
javascript/ui.js
+2
-3
No files found.
.gitignore
View file @
9e737cba
...
@@ -20,3 +20,4 @@ __pycache__
...
@@ -20,3 +20,4 @@ __pycache__
/interrogate
/interrogate
/user.css
/user.css
/.idea
/.idea
/SwinIR
javascript/ui.js
View file @
9e737cba
// various functions for interation with ui.py not large enough to warrant putting them in separate files
// various functions for interation with ui.py not large enough to warrant putting them in separate files
function
selected_gallery_index
(){
function
selected_gallery_index
(){
var
gr
=
gradioApp
()
var
buttons
=
gradioApp
().
querySelectorAll
(
'
[style="display: block;"].tabitem .gallery-item
'
)
var
buttons
=
gradioApp
().
querySelectorAll
(
"
.gallery-item
"
)
var
button
=
gradioApp
().
querySelector
(
'
[style="display: block;"].tabitem .gallery-item.
\\
!ring-2
'
)
var
button
=
gr
.
querySelector
(
"
.gallery-item.
\\
!ring-2
"
)
var
result
=
-
1
var
result
=
-
1
buttons
.
forEach
(
function
(
v
,
i
){
if
(
v
==
button
)
{
result
=
i
}
})
buttons
.
forEach
(
function
(
v
,
i
){
if
(
v
==
button
)
{
result
=
i
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment