diff options
Diffstat (limited to 'themes/default/template/picture.tpl')
-rw-r--r-- | themes/default/template/picture.tpl | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index f18fdd615..3cccf6b29 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -74,19 +74,7 @@ function changeImgSrc(url,typeSave,typeMap) jQuery().ready(function() { jQuery("#downloadSwitchLink").removeAttr("href"); - jQuery("#downloadSwitchLink").click(function() { - var elt = jQuery("#downloadSwitchBox"); - - elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5)) - .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true)) - .toggle(); - - return false; - }); - - jQuery("#downloadSwitchBox").on("mouseleave click", function() { - jQuery(this).hide(); - }); + (window.SwitchBox=window.SwitchBox||[]).push("#downloadSwitchLink", "#downloadSwitchBox"); }); {/literal}{/footer_script} |