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

  1. uabassguy
    Posted 3 years ago #

    I've come across an odd bug where rangeinput is not being found from jQuery tools when creating a new 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?


  2. 3dcv1r
    Plugin Author

    Posted 3 years ago #


    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. Is jquery.tools.js file from calpress available on your site?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CalPress Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic