Re-apply zoom upon window resize
This commit is contained in:
parent
f26fc5925b
commit
84dbc3abff
@ -27,6 +27,11 @@ $(function() {
|
|||||||
$(".shm-zoomer").change(function(e) {
|
$(".shm-zoomer").change(function(e) {
|
||||||
zoom(this.options[this.selectedIndex].value);
|
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) {
|
$("img.shm-main-image").click(function(e) {
|
||||||
switch(Cookies.get("ui-image-zoom")) {
|
switch(Cookies.get("ui-image-zoom")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user