Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
763b893f
Commit
763b893f
authored
Oct 16, 2022
by
yfszzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
images history sorting files by date
parent
6e4f5566
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
202 additions
and
71 deletions
+202
-71
images_history.js
javascript/images_history.js
+6
-6
images_history.py
modules/images_history.py
+196
-65
No files found.
javascript/images_history.js
View file @
763b893f
...
@@ -88,10 +88,10 @@ function images_history_set_image_info(button){
...
@@ -88,10 +88,10 @@ function images_history_set_image_info(button){
}
}
function
images_history_get_current_img
(
tabname
,
im
age_path
,
files
){
function
images_history_get_current_img
(
tabname
,
im
g_index
,
files
){
return
[
return
[
gradioApp
().
getElementById
(
tabname
+
'_images_history_set_index'
).
getAttribute
(
"img_index"
)
,
tabname
,
image_path
,
gradioApp
().
getElementById
(
tabname
+
'_images_history_set_index'
).
getAttribute
(
"img_index"
),
files
files
];
];
}
}
...
@@ -129,7 +129,7 @@ function images_history_delete(del_num, tabname, img_file_name, page_index, file
...
@@ -129,7 +129,7 @@ function images_history_delete(del_num, tabname, img_file_name, page_index, file
setTimeout
(
function
(
btn
){
btn
.
click
()},
30
,
btn
);
setTimeout
(
function
(
btn
){
btn
.
click
()},
30
,
btn
);
}
}
images_history_disabled_del
();
images_history_disabled_del
();
return
[
del_num
,
tabname
,
img_
path
,
img_
file_name
,
page_index
,
filenames
,
image_index
];
return
[
del_num
,
tabname
,
img_file_name
,
page_index
,
filenames
,
image_index
];
}
}
function
images_history_turnpage
(
img_path
,
page_index
,
image_index
,
tabname
,
date_from
,
date_to
){
function
images_history_turnpage
(
img_path
,
page_index
,
image_index
,
tabname
,
date_from
,
date_to
){
...
@@ -170,8 +170,8 @@ function images_history_init(){
...
@@ -170,8 +170,8 @@ function images_history_init(){
}
}
tabs_box
.
classList
.
add
(
images_history_tab_list
[
0
]);
tabs_box
.
classList
.
add
(
images_history_tab_list
[
0
]);
// same as above, at page load
// same as above, at page load
-- load very fast now
//
load_txt2img_button.click();
load_txt2img_button
.
click
();
}
else
{
}
else
{
setTimeout
(
images_history_init
,
500
);
setTimeout
(
images_history_init
,
500
);
}
}
...
...
modules/images_history.py
View file @
763b893f
This diff is collapsed.
Click to expand it.
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