aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/static/index.js b/static/index.js
index 0dbb2db..5979d86 100644
--- a/static/index.js
+++ b/static/index.js
@@ -30,6 +30,7 @@ const reload = () => {
}
image_viewer.preload_all();
+ shuffle.images = images;
});
}
@@ -76,6 +77,7 @@ const shuffle = ShuffleView.new({ });
const main = MainView.new({
active_view: image_viewer,
active_kind: MainView.Kind.upload,
+
onsearch: () => {
main.active_kind = MainView.Kind.upload;
main.active_view = image_viewer;
@@ -105,6 +107,7 @@ const main = MainView.new({
uploader.send();
},
onshuffle: () => {
+ shuffle.open();
main.active_kind = MainView.Kind.home;
main.active_view = shuffle;
},