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/index.tpl

    r13865 r13870  
    1919                </div>
    2020                {footer_script}{literal}
    21 $("#sortOrderLink").click(function() {
    22         var elt = $("#sortOrderBox");
    23         elt.css("left", Math.min( $(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))
    24                 .css("top", $(this).offset().top + $(this).outerHeight(true))
     21jQuery("#sortOrderLink").click(function() {
     22        var elt = jQuery("#sortOrderBox");
     23        elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5))
     24                .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true))
    2525                .toggle();
    2626});
    27 $("#sortOrderBox").on("mouseleave", function() {
    28         $(this).hide();
     27jQuery("#sortOrderBox").on("mouseleave", function() {
     28        jQuery(this).hide();
    2929});
    3030                {/literal}{/footer_script}
     
    4747                </div>
    4848                {footer_script}{literal}
    49 $("#derivativeSwitchLink").click(function() {
    50         var elt = $("#derivativeSwitchBox");
    51         elt.css("left", Math.min( $(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))
    52                 .css("top", $(this).offset().top + $(this).outerHeight(true))
     49jQuery("#derivativeSwitchLink").click(function() {
     50        var elt = jQuery("#derivativeSwitchBox");
     51        elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5))
     52                .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true))
    5353                .toggle();
    5454});
    55 $("#derivativeSwitchBox").on("mouseleave", function() {
    56         $(this).hide();
     55jQuery("#derivativeSwitchBox").on("mouseleave", function() {
     56        jQuery(this).hide();
    5757});
    5858                {/literal}{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.