From 7b2ed1ae8da5f8b04ee9cc61953425ae6dd87ef0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 2 Jul 2010 04:54:50 +0000 Subject: [PATCH] MINOR Using Google CDN for jQuery dependencies in FileIFrameField git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@107440 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/FileIFrameField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/FileIFrameField.php b/forms/FileIFrameField.php index 18379c198..b25235025 100755 --- a/forms/FileIFrameField.php +++ b/forms/FileIFrameField.php @@ -49,10 +49,10 @@ class FileIFrameField extends FileField { * @return string */ public function Field() { - Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/base/jquery.ui.all.css'); Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang'); Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js'); - Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/jquery-ui-1.8rc3.custom.js'); + Requirements::css('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css'); + Requirements::javascript('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js'); if($this->form->getRecord() && $this->form->getRecord()->exists()) {