diff options
| author | yo mama <pepper@scannerjammer.com> | 2016-08-26 08:49:20 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2016-08-26 08:49:20 -0700 |
| commit | 2d24e7bc8d97ae794e59ad2cf8154e66e91fe8ed (patch) | |
| tree | 7292ff632406b5768972e6e50373c9c8679b7f89 /share/frontend/gallery-static/js | |
| parent | a1ec1d968a5f5b17039028c0e3eb61dac977426a (diff) | |
good
Diffstat (limited to 'share/frontend/gallery-static/js')
| -rw-r--r-- | share/frontend/gallery-static/js/gallery_isotope_config.js | 2 | ||||
| -rw-r--r-- | share/frontend/gallery-static/js/main.js | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/share/frontend/gallery-static/js/gallery_isotope_config.js b/share/frontend/gallery-static/js/gallery_isotope_config.js index b2be5d4..33f7ca8 100644 --- a/share/frontend/gallery-static/js/gallery_isotope_config.js +++ b/share/frontend/gallery-static/js/gallery_isotope_config.js @@ -120,7 +120,7 @@ $(function(){ } } }); - var sorter = { + window.sorter = { date: function(){$container.isotope({sortBy: "date"})}, username: function(){$container.isotope({sortBy: "username"})}, height: function(){$container.isotope({sortBy: "height"})}, diff --git a/share/frontend/gallery-static/js/main.js b/share/frontend/gallery-static/js/main.js index af22fa6..7d92b93 100644 --- a/share/frontend/gallery-static/js/main.js +++ b/share/frontend/gallery-static/js/main.js @@ -124,7 +124,12 @@ var Main = if (! Main.editing) Dump.showOlder() break + case 83: + if (! Main.editing) + window.sorter.shuffle() + break } + // S key return true }, poll: function () |
