Support » Plugin: Booking calendar, Appointment Booking System » Can the deprecations be sorted?

  • Resolved julietgreena21

    (@julietgreena21)


    I’m having to use a plug in to keep the website clean because there is a deprecation in the code.

    \’hover\’ pseudo-event is deprecated, use \’mouseenter mouseleave\’

    Could you update the code?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author wpdevart

    (@wpdevart)

    Hi dear user.

    We will update the code within a week.

    Thanks.

    Plugin Author wpdevart

    (@wpdevart)

    Hi dear user.

    Our developers checked the plugin and there isn’t any \’hover\’ in the code. Can you tell us the exact place where you found it?

    Thanks.

    Thread Starter julietgreena21

    (@julietgreena21)

    I’ve taken this snip from the page where the code is: If you search for ‘hover’ you’ll find it:

    CODE:

    *CALENDAR
    */
    var select_ex = false,
    existtt = false,
    count_item = $(“.wpdevart-day”).length,
    start_index,check_in,check_out,
    item_count = “”,
    extra_price_value = 0;
    if($(“#wpdevart_update_res”).length){
    existtt = true;
    /* 12/23/2017 remove
    item_click(false,$(“.wpdevart-day.selected”).get(0),true);*/
    var check_indateformat = $(“.wpdevart-day.selected”).eq(0).data(“dateformat”);
    var check_outdateformat = $(“.wpdevart-day.selected”).eq($(“.wpdevart-day.selected”).length-1).data(“dateformat”);
    var check_indate = $(“.wpdevart-day.selected”).eq(0).data(“date”);
    var check_outdate = $(“.wpdevart-day.selected”).eq($(“.wpdevart-day.selected”).length-1).data(“date”);
    var calendar_idd = $(“.booking_calendar_main_container”).data(“id”);
    if(!$(“.booking_calendar_main_container”).hasClass(“hours_enabled”)){
    $.get(wpdevart.ajaxUrl, {
    action: ‘wpdevart_get_interval_dates’,
    wpdevart_start_date: check_indate,
    wpdevart_end_date: check_outdate,
    wpdevart_id: calendar_idd,
    wpdevart_nonce: wpdevart.ajaxNonce
    }, function (data) {
    date_data = JSON.parse(data);
    });
    }
    }
    $(“body”).on(“click”,”.wpdevart-day”, function() {
    item_click(false,this,false);
    });

    $(“body”).on(“hover”,”.wpdevart-day”, function(){
    item_hover(false,this);
    });

    /*
    *HOURS
    */

    $(“body”).on(“click”,”.wpdevart-hour-item”, function() {
    item_click(true,this,false);
    });

    $(“body”).on(“hover”,”.wpdevart-hour-item”, function(){
    item_hover(true,this);
    });

    function item_hover(hour,el) {
    var booking_id = $(el).closest(“.booking_calendar_main_container”).data(‘booking_id’);
    var booking_widget = wpdevartBooking(booking_id, “booking_widget”);
    var show_day_info_on_hover = wpdevartBooking(booking_id, “show_day_info_on_hover”);
    var forNight = wpdevartBooking(booking_id, “night”);
    var hours_enabled = wpdevartBooking(booking_id, “hours_enabled”);
    if(hour == true) {
    var selected = “hour_selected”;
    var item = “wpdevart-hour-item”;
    } else {
    var selected = “selected”;
    var item = “wpdevart-day”;
    }
    if(typeof id == “undefined”) {
    id = 0;

    Plugin Author wpdevart

    (@wpdevart)

    Hi dear user.

    It seems you are using the old version. Can you tell us what version you are using?

    Thanks.

    Plugin Author wpdevart

    (@wpdevart)

    Dear user.

    If you are using the premium version, then contact us at support@wpdevart.com and we will send the new version. If you use the free version, then simply update the plugin to the newest version.

    Thanks.

    Thread Starter julietgreena21

    (@julietgreena21)

    I have messaged the support at that email. We do have the premium version, but it’s difficult to find any details that show this.

    Plugin Author wpdevart

    (@wpdevart)

    Hi dear user.

    As we already provided support via email, we will close this topic.

    You are using the premium version, so for future support contact us via email.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can the deprecations be sorted?’ is closed to new replies.