Browse files

use google cdn instead of microsoft cdn (was slow + is down at the mo…

…ment)
  • Loading branch information...
1 parent bdd8977 commit c271924edc1e2fa2faf9e31623cf6059e59c89b6 Pär Thernström committed Jan 3, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 field_types/field_date_v2.php
View
6 field_types/field_date_v2.php
@@ -31,13 +31,15 @@ function enqueue_scripts() {
global $wp_scripts;
wp_enqueue_script('jquery-ui-datepicker');
$ui = $wp_scripts->query('jquery-ui-core');
- $url = "https://ajax.aspnetcdn.com/ajax/jquery.ui/{$ui->ver}/themes/smoothness/jquery.ui.all.css";
+ //$url = "https://ajax.aspnetcdn.com/ajax/jquery.ui/{$ui->ver}/themes/smoothness/jquery.ui.all.css";
+ $url = "https://ajax.googleapis.com/ajax/libs/jqueryui/{$ui->ver}/themes/smoothness/jquery-ui.css";
wp_enqueue_style('jquery-ui-smoothness', $url, false, $ui->ver);
wp_enqueue_script("jquery-ui-datepicker");
// Language files
- $url = "https://ajax.aspnetcdn.com/ajax/jquery.ui/{$ui->ver}/i18n/jquery-ui-i18n.min.js";
+ //$url = "https://ajax.aspnetcdn.com/ajax/jquery.ui/{$ui->ver}/i18n/jquery-ui-i18n.min.js";
+ $url = "https://ajax.googleapis.com/ajax/libs/jqueryui/{$ui->ver}/i18n/jquery-ui-i18n.min.js";
wp_enqueue_script('jquery-ui-18n', $url, false, $ui->ver);
// Timepicker

0 comments on commit c271924

Please sign in to comment.