Plugin Directory

Changeset 1119656


Ignore:
Timestamp:
03/24/2015 01:35:51 PM (11 years ago)
Author:
Travelgrove
Message:

jQuery requirements fixed in 1.4.2

Location:
travel-search/tags/1.4.2/controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • travel-search/tags/1.4.2/controllers/controller-admin.php

    r1094267 r1119656  
    245245
    246246        // HTML editor integration
    247         wp_register_script( 'tg_searchboxes-editor-button-js', plugins_url( $jsfile, TG_SEARCHBOXES__FILE__ ), array( 'jquery', 'thickbox'/*, 'media-upload', 'quicktags'*/), '1.0', true );
     247        wp_register_script( 'tg_searchboxes-editor-button-js', plugins_url( $jsfile, TG_SEARCHBOXES__FILE__ ), array( 'jquery', 'jquery-core', 'jquery-migrate', 'thickbox'/*, 'media-upload', 'quicktags'*/), '1.0', true );
    248248        wp_localize_script( 'tg_searchboxes-editor-button-js', 'TG_Searchboxes_Editor_Button',
    249249            array(
     
    327327        wp_enqueue_script(  'tgsb_autosuggestion',
    328328                    plugins_url('/js/autosuggestion' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__),
    329                     array('jquery'));
     329                    array('jquery', 'jquery-core', 'jquery-migrate'));
    330330        /** jQuery DatePicker calendar for date inputs  */
    331331        wp_enqueue_script(  'tgsb_datepicker_script',
    332332                    plugins_url('/js/jquery-ui-datepicker' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__),
    333                     array('jquery', 'jquery-ui-core'));
     333                    array('jquery', 'jquery-core', 'jquery-migrate', 'jquery-ui-core'));
    334334        return true;
    335335    }
     
    340340        wp_enqueue_script(  'tgsb_autosuggestion',
    341341                    plugins_url('/js/autosuggestion' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__),
    342                     array('jquery'));
     342                    array('jquery', 'jquery-core', 'jquery-migrate'));
    343343
    344344        // adding CSS for the datepicker (for depart, return, check-in, check-out, pick-up, drop-off dates)
     
    347347        wp_enqueue_script(  'tgsb_datepicker_script',
    348348                    plugins_url('/js/jquery-ui-datepicker' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__),
    349                     array('jquery', 'jquery-ui-core'));
     349                    array('jquery', 'jquery-core', 'jquery-migrate', 'jquery-ui-core'));
    350350        // enqueuing the farbtastic color-picker css file
    351351        wp_enqueue_style( 'farbtastic' );
     
    369369                plugins_url('/js/tg_searchboxes_settings' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__),
    370370                // dependencies
    371                 array('tgsb_datepicker_script', 'farbtastic', 'jquery'),
     371                array('tgsb_datepicker_script', 'farbtastic', 'jquery', 'jquery-core', 'jquery-migrate'),
    372372                '',
    373373                // add script to footer because on it are attached some js variables
     
    394394                plugins_url('/js/tg_searchboxes_shortcodes' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__),
    395395                // dependencies
    396                 array('tgsb_datepicker_script', 'jquery'),
     396                array('tgsb_datepicker_script', 'jquery', 'jquery-core', 'jquery-migrate'),
    397397                '1.2',
    398398                // add script to footer because on it are attached some js variables
     
    434434        wp_enqueue_script(  'tgsb_autosuggestion',
    435435                    plugins_url('/js/autosuggestion' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__),
    436                     array('jquery'));
     436                    array('jquery', 'jquery-core', 'jquery-migrate'));
    437437        /** jQuery DatePicker calendar for date inputs  */
    438438        wp_enqueue_script(  'tgsb_datepicker_script',
    439439                    plugins_url('/js/jquery-ui-datepicker' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__),
    440                     array('jquery', 'jquery-ui-core'));
     440                    array('jquery', 'jquery-core', 'jquery-migrate', 'jquery-ui-core'));
    441441        /** main JS for dynamic functionalities of the searchboxes  */
    442442        wp_enqueue_script(  'tgsb_main_script',
  • travel-search/tags/1.4.2/controllers/controller-frontend.php

    r1094267 r1119656  
    167167/** enque the required JS files */
    168168function enqueue_tg_searchboxes_js() {
     169
    169170    /** AutoSuggestion drop-down for aiports+cities; (name, path, dependencies) - dependent on jQuery   */
    170     wp_enqueue_script('tgsb_autosuggestion', plugins_url('/js/autosuggestion' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__), array('jquery'));
     171    wp_enqueue_script('tgsb_autosuggestion', plugins_url('/js/autosuggestion' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__), array('jquery', 'jquery-core', 'jquery-migrate'));
    171172    /** jQuery DatePicker; dependent on jQuery and jQuery UI    */
    172     wp_enqueue_script('tgsb_datepicker_script', plugins_url('/js/jquery-ui-datepicker' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__), array('jquery', 'jquery-ui-core'));
     173    wp_enqueue_script('tgsb_datepicker_script', plugins_url('/js/jquery-ui-datepicker' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__), array('jquery', 'jquery-core', 'jquery-migrate', 'jquery-ui-core'));
    173174
    174175    /** @note   JS file holding the class that handles popups
     
    186187    wp_enqueue_script('tgsb_main_script',
    187188            plugins_url( '/js/tg_searchboxes' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__ ),
    188             array('tgsb_datepicker_script', 'tgsb_autosuggestion', 'jquery', 'tgsb_popup_handler_script'),
     189            array('tgsb_datepicker_script', 'tgsb_autosuggestion', 'jquery', 'jquery-core', 'jquery-migrate', 'tgsb_popup_handler_script'),
    189190            // version number
    190191            '',
Note: See TracChangeset for help on using the changeset viewer.