diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-12-17 21:33:06 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-12-17 21:33:06 +0100 |
| commit | 9c37e114b20e6b2a2d4a34fe1f0e44c5ed3439ed (patch) | |
| tree | 42f05bd826fb1e55e70a5402167521253bc8be86 /static/index.js | |
| parent | 99701b8d6fc0671fabc2e5d3ab7d6841bff9021a (diff) | |
shuffle: first version
Diffstat (limited to 'static/index.js')
| -rw-r--r-- | static/index.js | 3 |
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; }, |