Plugin Directory

Changeset 180508


Ignore:
Timestamp:
12/07/2009 02:16:46 PM (16 years ago)
Author:
eswhite
Message:

Added jQuery.noConflict() support to make plugin compatible with Prototype-based themes and plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordcycle/trunk/wordcycle.php

    r180497 r180508  
    100100            global $wpfoot;
    101101            $wpfoot .= "<script type='text/javascript'>
    102                         var $j = jQuery.noConflict();
    103                         $j(function(){
    104                             $j('#slideshow-".$rand."').cycle({
     102                        jQuery.noConflict();
     103                        (function($){
     104                            $('#slideshow-".$rand."').cycle({
    105105                                speed: '".$speed."',
    106106                                fx: '".$fx."',
     
    110110                                prev: '".$prev."'
    111111                            });
    112                         });
     112                        })(jQuery);
    113113                        </script>
    114114                        <style type='text/css'>
Note: See TracChangeset for help on using the changeset viewer.