WordPress.org

Ready to get started?Download WordPress

Forums

CalPress Calendar
jQuery Tools not loading on new calendar event post. (2 posts)

  1. uabassguy
    Member
    Posted 1 year ago #

    I've come across an odd bug where rangeinput is not being found from jQuery tools when creating a new event.

    wp-admin/post-new.php?post_type=calp_event

    Console log:
    Uncaught TypeError: Object [object Object] has no method 'rangeinput' on add_new_event.js line 47

    The line reads:
    $( '#calp_count, #calp_daily_count, #calp_weekly_count, #calp_monthly_count, #calp_yearly_count' ).rangeinput( {

    I found this in post-new.php that determines the plugins needed for different php queries:
    if ( ! isset( $_registered_pages[ get_plugin_page_hookname( "post-new.php?post_type=$post_type", $post_type_object->show_in_menu ) ] ) )

    So when omitting the ?post_type=calp_event from the file, this error does not happen. Where is the configuration for calpress that determines what scripts to load?

    http://wordpress.org/extend/plugins/calpress-event-calendar/

  2. 3dcv1r
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    if you remove post_type it will be simple wordpress post, but not calpress event, which actually is specific post type

    Btw this issue isn't reproducible for me. Can you try latest version from trunk folder - http://downloads.wordpress.org/plugin/calpress-event-calendar.1.5.0.1.zip. Is jquery.tools.js file from calpress available on your site?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags