Changeset 13870 for trunk/themes/default/template/picture.tpl
- Timestamp:
- Apr 3, 2012, 5:44:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/template/picture.tpl
r13865 r13870 36 36 } 37 37 38 $("#derivativeSwitchLink").click(function() {39 var elt = $("#derivativeSwitchBox");40 elt.css("left", Math.min( $(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))41 .css("top", $(this).offset().top + $(this).outerHeight(true))38 jQuery("#derivativeSwitchLink").click(function() { 39 var elt = jQuery("#derivativeSwitchBox"); 40 elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5)) 41 .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true)) 42 42 .toggle(); 43 43 }); 44 $("#derivativeSwitchBox").on("mouseleave click", function() {45 $(this).hide();44 jQuery("#derivativeSwitchBox").on("mouseleave click", function() { 45 jQuery(this).hide(); 46 46 }); 47 47 {/literal}{/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.