Skip to content
This repository has been archived by the owner on Jan 27, 2018. It is now read-only.

Commit

Permalink
Changed to local jQuery, removed noConflict().
Browse files Browse the repository at this point in the history
  • Loading branch information
dlanger committed Jul 26, 2011
1 parent 0f80f22 commit c491abc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion simpleslider.js
@@ -1,4 +1,3 @@
jQuery.noConflict();
simpleslider_prefs = {};

jQuery(document).ready(function($){
Expand Down
5 changes: 1 addition & 4 deletions simpleslider.php
Expand Up @@ -34,6 +34,7 @@ function sss_uninstall() {

function sss_load_externals() {
if ( is_admin() ) {

wp_enqueue_script( 'jquery-ui-core' );
wp_enqueue_script( 'jquery-ui-tabs' );
wp_register_style( 'simpleslider_admin', plugins_url(
Expand All @@ -42,10 +43,6 @@ function sss_load_externals() {
return;
}

// Load jQuery Cycle Lite locally, and jQuery from the Google CDN
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/' .
'jquery/1.6.0/jquery.min.js', false, null, false );
wp_register_script( 'mini_cycle', plugins_url(
'jquery.cycle.lite.1.1.min.js', __FILE__ ), array( 'jquery' ),
'1.1', true );
Expand Down

0 comments on commit c491abc

Please sign in to comment.