Forums

[Plugin: Events Calendar] Date Picker Error in Admin (8 posts)

  1. jennygold
    Member
    Posted 2 months ago #

    I'm testing the upgrade to 6.6-beta running Wordpress 2.8.4, and the datepicker is not working on this page: wp-admin/admin.php?page=events-calendar, where the events are created. I'm getting a jquery error in Firebug "$("#EC_start_clockpick").clockpick is not a function" and it seems to be due to jquery not being called in my Wordpress admin pages. Is this a problem with Wordpress or the plugin?

    http://wordpress.org/extend/plugins/events-calendar/

  2. jennygold
    Member
    Posted 2 months ago #

    The error was due to a broken link in events-calendar.php.

    Line 211: wp_enqueue_script('jqueryclockpicker', '/wp-content/plugins/events-calendar/js/jquery.clockpick.1.2.6.js', array('jquery'), '1.2.6');

    The clockpick file in events-calendar/js is named jquery.clockpick.min.js not jquery.clockpick.1.2.6.js.

    Unfortunately my datepicker and timepicker are still not functioning.

  3. stevielovegun
    Member
    Posted 2 months ago #

    I'm having the same issue and also think it's related to javascript calls. Further info...

    • on adding events I don't get the datepicker icon or functionality, do get the time icon but it doesn't work
    • on editing existing events both work fine
  4. andrewtf
    Member
    Posted 2 months ago #

    to get the datepicker to work:

    line 176 in ec_managementjs.class.php
    DELETE - $this->calendarjs();

    after line 233 in ec_management.class.php

    ADD - $js->calendarjs();

    clockpicker still broken after this little fix though

  5. andrewtf
    Member
    Posted 2 months ago #

    you can get clockpick to work by getting the latest version of it @
    http://www.jnathanson.com/index.cfm?page=jquery/clockpick/ClockPick#download

    and set military to true in ec_managementjs.class.php on lines ~226 and ~234

  6. dreamwhisper
    Member
    Posted 2 months ago #

    I'm a bit confused as my datepicker is not working, but those line numbers don't seem to correspond to my files. 6.6-beta running Wordpress 2.8.4

  7. LBSources
    Member
    Posted 2 months ago #

  8. eirtaza
    Member
    Posted 1 month ago #

    hey

    andrewtf
    i installed the cloclpick but cant edit the lines
    coz they are different

    please specify the version over which these changes will occur

Reply

You must log in to post.

About this Topic