JQuery has no method live
-
I downloaded the plugin and am using it with the latest version of JQuery. Apparently
live()
is deprecated and shouldn’t be used.I was able to fix this by change line 149 in the
plugins/blog-post-calendar-widget/js/wp_calendar.js
file fromjQuery('.ui-datepicker-next, .ui-datepicker-prev, .wp-cal-prev, .wp-cal-next').live('click', function (){
to
jQuery('.ui-datepicker-next, .ui-datepicker-prev, .wp-cal-prev, .wp-cal-next').on('click', function (){
Strangely, it still didn’t work for me so I ended up writing in this rule for my CSS to get it to appear (because the JQuery event written between 159 and 166 in that same file would not work for me):
`#calendar_wrap td.WP-Cal-popup:hover .wp-cal-tooltip {
display:block;
}`Hope that helps people. Great plugin otherwise.
- The topic ‘JQuery has no method live’ is closed to new replies.