I am getting a JS error when clicking on the next or previous month in the calendar full view.
The error is:
em_ajaxify is not defined
And this line is causing the error:
var url = em_ajaxify($(this).attr('href'));
Any way to resolve this issue?
I am getting a JS error when clicking on the next or previous month in the calendar full view.
The error is:
em_ajaxify is not defined
And this line is causing the error:
var url = em_ajaxify($(this).attr('href'));
Any way to resolve this issue?
are all the em js files being included? must be something like that
I believe they are. I did not remove any files from the plugin.
do you have any other plugin installed?
it might be a conflict between your other plugin or theme. please try deactivating those temporarily or switching to default theme.
also are you in multisite or bp?
FYI, to get this working I had to hack the plugin's calendar-full.php to include this before the rebinding of the nab buttons. Probably not the best fix, but that got it working.
var em_ajaxify = function(url){
if ( url.search('em_ajax=0') != -1){
url = url.replace('em_ajax=0','em_ajax=1');
}else if( url.search(/\?/) != -1 ){
url = url + "&em_ajax=1";
}else{
url = url + "?em_ajax=1";
}
return url;
}
@joebeninghove's solution worked for me, though you should follow their instructions on how to create a template and put the JS code in THAT rather than the original source file.
Cheers.
This topic has been closed to new replies.