set zoomer val on shotcut too

This commit is contained in:
Shish 2012-03-24 23:34:00 +00:00
parent 1d4836e6c4
commit 5efdbdeb91

View File

@ -11,7 +11,6 @@ $(function() {
}); });
if($.cookie("ui-image-zoom")) { if($.cookie("ui-image-zoom")) {
$("#zoomer").val($.cookie("ui-image-zoom"));
zoom($.cookie("ui-image-zoom")); zoom($.cookie("ui-image-zoom"));
} }
}); });
@ -34,5 +33,8 @@ function zoom(zoom) {
img.css('max-width', '95%'); img.css('max-width', '95%');
img.css('max-height', (window.innerHeight * 0.95) + 'px'); img.css('max-height', (window.innerHeight * 0.95) + 'px');
} }
$("#zoomer").val(zoom);
$.cookie("ui-image-zoom", zoom, {path: '/', expires: 365}); $.cookie("ui-image-zoom", zoom, {path: '/', expires: 365});
} }