Plugin Directory

Changeset 2776768


Ignore:
Timestamp:
08/28/2022 03:23:20 PM (4 years ago)
Author:
chuhpl
Message:

BUGFIX: Changed how scripts were being called so that jquery works again and the popups don't error out, causing the page to fail to allow anyone to reserve.

Location:
book-a-room-event-calendar/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • book-a-room-event-calendar/trunk/README.txt

    r1922976 r2776768  
    4949
    5050== Changelog ==
     51= 1.9 =
     52* BUGFIX: Changed how scripts were being called so that jquery works again and the popups don't error out, causing the page to fail to allow anyone to reserve.
     53
    5154= 1.8 =
    5255* Added in empty checking for basedir
  • book-a-room-event-calendar/trunk/bookaroom-events.php

    r1922976 r2776768  
    44Plugin URI: https://wordpress.org/plugins/book-a-room-event-calendar/
    55Description: This is the front end for the event calendar system.
    6 Version: 1.8
     6Version: 1.9
    77Author: Colin Tomele
    88Author URI: http://heightslibrary.org
     
    3535function bookaroom_init()
    3636{
     37   
    3738    # shortcodes
     39    wp_enqueue_script( 'bookaroom_calendar_js', plugins_url( 'book-a-room-event-calendar/js/scripts.js' ), array('jquery'), null, true );
     40    wp_enqueue_script( 'bookaroom_calendar_zebra', plugins_url( 'book-a-room-event-calendar/js/jstree/jquery.jstree.js' ), array('jquery'), null, true );
     41
    3842    wp_enqueue_style( 'myCSS', plugins_url( 'book-a-room-event-calendar/css/calendar.css' ) );
     43
    3944    wp_register_style('jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css');
     45
    4046    wp_enqueue_style( 'jquery-ui' );   
    41     wp_enqueue_script( "jquery-ui-datepicker");
    4247   
     48    wp_enqueue_script( 'jquery-ui-datepicker' );
     49       
     50
    4351    add_shortcode( 'showEvents', array( 'events_main', 'showEvents' ) );
    4452    add_shortcode( 'showCalendar', array( 'events_main', 'calendarMain' ) );
  • book-a-room-event-calendar/trunk/templates/calendar.php

    r1915936 r2776768  
    1 <script language="javascript">
    2 jQuery(function() {
    3     // Setup date drops
    4     jQuery( '#startDate, #endDate' ).datepicker();
    5    
    6     jQuery("#hideToggle").click(function(){
    7         jQuery("#filterCont").slideToggle();
    8     });
    9 });
    10 </script>
    111<div id="bookaroom_main_container">
    122    <a href="#top"></a>
  • book-a-room-event-calendar/trunk/templates/searchResults.php

    r1915932 r2776768  
    1 <script language="javascript">
    2 jQuery(document).ready(function(){
    3     // Setup date drops
    4     jQuery( '#startDate, #endDate' ).datepicker();
    5    
    6     jQuery("#hideToggle").click(function(){
    7         jQuery(".searchArea").toggle();
    8     });
    9 
    10     jQuery("#resetAge").click( function(){
    11         jQuery("#ageGroup option:selected").removeAttr("selected");
    12        
    13     });
    14     jQuery("#resetCats").click( function(){
    15         jQuery("#categoryGroup option:selected").removeAttr("selected");
    16        
    17     });
    18 });
    19 
    20 </script>
    211<div id="bookaroom_main_container">
    222    <form name="form1" method="get">
Note: See TracChangeset for help on using the changeset viewer.