Got error when try to add Media Uploader

I have include the current js file into my theme

<script src="<?php echo bloginfo('template_directory');?>/js/jquery-1.10.2.min.js"></script>
<script src="<?php echo bloginfo('template_directory');?>/js/jquery.easing.1.3.js"></script>

When I try to use in my plugin.

wp_enqueue_script('media-upload');
wp_enqueue_script('thickbox');

I get the current error

TypeError: jQuery.easing[jQuery.easing.def] is not a function

Answers


Try to open your jquery easing plugin file and wrap the code inside:

$(document).ready(function() {
    // Put all the code inside here
});

Need Your Help

Remove drop shadow from Fancybox 2?

jquery fancybox-2

Is there a way to remove the drop shadow on Fancybox 2? Is there a CSS solution? I spent forever trying various solutions with CSS and trying to hack the JS but nothing seems to work. Please help...

Converting a complicated list of matrices into an array of matrices

arrays r list matrix

I would like to convert a list of matrices into an array of stapled matrices. My list looks like l3 in: