Re-apply zoom upon window resize

This commit is contained in:
im-mi 2016-09-01 22:48:33 -04:00
parent f26fc5925b
commit 84dbc3abff

View File

@ -27,6 +27,11 @@ $(function() {
$(".shm-zoomer").change(function(e) {
zoom(this.options[this.selectedIndex].value);
});
$(window).resize(function(e) {
$(".shm-zoomer").each(function (e) {
zoom(this.options[this.selectedIndex].value)
});
});
$("img.shm-main-image").click(function(e) {
switch(Cookies.get("ui-image-zoom")) {