summaryrefslogtreecommitdiff
path: root/share/frontend/gallery-static/js
diff options
context:
space:
mode:
Diffstat (limited to 'share/frontend/gallery-static/js')
-rw-r--r--share/frontend/gallery-static/js/gallery_isotope_config.js2
-rw-r--r--share/frontend/gallery-static/js/main.js5
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 ()