aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/picture.tpl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--themes/default/template/picture.tpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index 5450dce85..6d1a6aba9 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -35,14 +35,14 @@ function changeImgSrc(url,typeSave,typeMap)
document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}';
}
-$("#derivativeSwitchLink").click(function() {
- var elt = $("#derivativeSwitchBox");
- elt.css("left", Math.min( $(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))
- .css("top", $(this).offset().top + $(this).outerHeight(true))
+jQuery("#derivativeSwitchLink").click(function() {
+ var elt = jQuery("#derivativeSwitchBox");
+ 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();
});
-$("#derivativeSwitchBox").on("mouseleave click", function() {
- $(this).hide();
+jQuery("#derivativeSwitchBox").on("mouseleave click", function() {
+ jQuery(this).hide();
});
{/literal}{/footer_script}
{strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">