JS problems with calendar
-
Hello i have this problem with VikBooking plugin. this message appears under the plugin calendar
‘; // remove first or last calendar, then prepend or append this calendar depending on the direction var cur_old_cal_index = direction == ‘next’ ? (jQuery(‘.vbcaldivcont’).length – 1) : new_calendars_parsed; if (direction == ‘next’) { jQuery(‘.vbcaldivcont’).eq(cur_old_cal_index).after(cal_html); jQuery(‘.vbcaldivcont’).first().remove(); } else { jQuery(‘.vbcaldivcont’).eq(cur_old_cal_index).before(cal_html); jQuery(‘.vbcaldivcont’).last().remove(); } // increase parsed calendars counter new_calendars_parsed++; } // update navigation dates if (cal_data[‘next_ymd’]) { vboAvCalsNavNext = cal_data[‘next_ymd’]; } if (cal_data[‘prev_ymd’]) { vboAvCalsNavPrev = cal_data[‘prev_ymd’]; } // stop loading jQuery(‘.vbcaldivcont’).removeClass(‘vbcaldivcont-loading’); vboAvCalsNavLoading = false; // restore navigation arrows jQuery(‘.vbo-rdet-avcal-nav’).remove(); if (cal_data[‘can_nav_next’]) { jQuery(‘.vbcaldivcont’).last().find(‘.vbcaltrmonth td’).append(‘>’); } if (cal_data[‘can_nav_prev’]) { jQuery(‘.vbcaldivcont’).first().find(‘.vbcaltrmonth td’).prepend(‘<‘); } } catch (e) { console.log(e); alert(‘Invalid response’); jQuery(‘.vbcaldivcont’).removeClass(‘vbcaldivcont-loading’); vboAvCalsNavLoading = false; return false; } }).fail(function(err) { console.error(err); alert(‘Could not navigate’); jQuery(‘.vbcaldivcont’).removeClass(‘vbcaldivcont-loading’); vboAvCalsNavLoading = false; }); }); });
The page I need help with: [log in to see the link]
- The topic ‘JS problems with calendar’ is closed to new replies.