From 5efdbdeb91d1153782c9c2348699e6914e56275f Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 24 Mar 2012 23:34:00 +0000 Subject: [PATCH] set zoomer val on shotcut too --- ext/handle_pixel/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/handle_pixel/script.js b/ext/handle_pixel/script.js index c264f6e4..c95bc3e0 100644 --- a/ext/handle_pixel/script.js +++ b/ext/handle_pixel/script.js @@ -11,7 +11,6 @@ $(function() { }); if($.cookie("ui-image-zoom")) { - $("#zoomer").val($.cookie("ui-image-zoom")); zoom($.cookie("ui-image-zoom")); } }); @@ -34,5 +33,8 @@ function zoom(zoom) { img.css('max-width', '95%'); img.css('max-height', (window.innerHeight * 0.95) + 'px'); } + + $("#zoomer").val(zoom); + $.cookie("ui-image-zoom", zoom, {path: '/', expires: 365}); }