Ignore:
Timestamp:
Apr 3, 2012, 5:44:21 PM (12 years ago)
Author:
mistic100
Message:

feature 2588: use jQuery() function instead of $(), avoiding possible conflicts with other frameworks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/picture.tpl

    r13865 r13870  
    3636}
    3737
    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))
     38jQuery("#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))
    4242                .toggle();
    4343});
    44 $("#derivativeSwitchBox").on("mouseleave click", function() {
    45         $(this).hide();
     44jQuery("#derivativeSwitchBox").on("mouseleave click", function() {
     45        jQuery(this).hide();
    4646});
    4747{/literal}{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.