From 9c37e114b20e6b2a2d4a34fe1f0e44c5ed3439ed Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 17 Dec 2025 21:33:06 +0100 Subject: shuffle: first version --- static/index.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'static/index.js') 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; }, -- cgit v1.2.3-70-g09d2