Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made jquery include more url friendly. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions wp_jquery_timelinr.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ function save_timelinr_date(){
// Datepicker Jquery UI
add_action( 'admin_init', 'broobe_date_picker' );
function broobe_date_picker() {
wp_enqueue_script( 'jquery-datepicker', 'http://code.jquery.com/ui/1.10.1/jquery-ui.js', array('jquery', 'jquery-ui-core' ) );
wp_enqueue_style( 'style-datepicker', 'http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css');
wp_enqueue_script( 'jquery-datepicker', '//code.jquery.com/ui/1.10.1/jquery-ui.js', array('jquery', 'jquery-ui-core' ) );
wp_enqueue_style( 'style-datepicker', '//code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css');

wp_enqueue_script( 'custom.timelinr', JQTL_BASE_URL . '/assets/js/custom.js', array( 'jquery-datepicker' ));
wp_localize_script( 'custom.timelinr', 'obj', array( 'image_url' => JQTL_BASE_URL . "/assets/images/") );
Expand Down Expand Up @@ -412,4 +412,4 @@ public function shortcode($atts, $content = NULL) {
global $jqueryTimelinrLoad;
$jqueryTimelinrLoad = new jqueryTimelinrLoad();
}
?>
?>