Changeset 1119656
- Timestamp:
- 03/24/2015 01:35:51 PM (11 years ago)
- Location:
- travel-search/tags/1.4.2/controllers
- Files:
-
- 2 edited
-
controller-admin.php (modified) (7 diffs)
-
controller-frontend.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
travel-search/tags/1.4.2/controllers/controller-admin.php
r1094267 r1119656 245 245 246 246 // 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 ); 248 248 wp_localize_script( 'tg_searchboxes-editor-button-js', 'TG_Searchboxes_Editor_Button', 249 249 array( … … 327 327 wp_enqueue_script( 'tgsb_autosuggestion', 328 328 plugins_url('/js/autosuggestion' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__), 329 array('jquery' ));329 array('jquery', 'jquery-core', 'jquery-migrate')); 330 330 /** jQuery DatePicker calendar for date inputs */ 331 331 wp_enqueue_script( 'tgsb_datepicker_script', 332 332 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')); 334 334 return true; 335 335 } … … 340 340 wp_enqueue_script( 'tgsb_autosuggestion', 341 341 plugins_url('/js/autosuggestion' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__), 342 array('jquery' ));342 array('jquery', 'jquery-core', 'jquery-migrate')); 343 343 344 344 // adding CSS for the datepicker (for depart, return, check-in, check-out, pick-up, drop-off dates) … … 347 347 wp_enqueue_script( 'tgsb_datepicker_script', 348 348 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')); 350 350 // enqueuing the farbtastic color-picker css file 351 351 wp_enqueue_style( 'farbtastic' ); … … 369 369 plugins_url('/js/tg_searchboxes_settings' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__), 370 370 // dependencies 371 array('tgsb_datepicker_script', 'farbtastic', 'jquery' ),371 array('tgsb_datepicker_script', 'farbtastic', 'jquery', 'jquery-core', 'jquery-migrate'), 372 372 '', 373 373 // add script to footer because on it are attached some js variables … … 394 394 plugins_url('/js/tg_searchboxes_shortcodes' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__), 395 395 // dependencies 396 array('tgsb_datepicker_script', 'jquery' ),396 array('tgsb_datepicker_script', 'jquery', 'jquery-core', 'jquery-migrate'), 397 397 '1.2', 398 398 // add script to footer because on it are attached some js variables … … 434 434 wp_enqueue_script( 'tgsb_autosuggestion', 435 435 plugins_url('/js/autosuggestion' . TGSB_PACK . '.js?' . TGSB_VER, TG_SEARCHBOXES__FILE__), 436 array('jquery' ));436 array('jquery', 'jquery-core', 'jquery-migrate')); 437 437 /** jQuery DatePicker calendar for date inputs */ 438 438 wp_enqueue_script( 'tgsb_datepicker_script', 439 439 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')); 441 441 /** main JS for dynamic functionalities of the searchboxes */ 442 442 wp_enqueue_script( 'tgsb_main_script', -
travel-search/tags/1.4.2/controllers/controller-frontend.php
r1094267 r1119656 167 167 /** enque the required JS files */ 168 168 function enqueue_tg_searchboxes_js() { 169 169 170 /** 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')); 171 172 /** 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')); 173 174 174 175 /** @note JS file holding the class that handles popups … … 186 187 wp_enqueue_script('tgsb_main_script', 187 188 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'), 189 190 // version number 190 191 '',
Note: See TracChangeset
for help on using the changeset viewer.