Upgrade jQuery to 1.11.1 and jQuery UI to 1.11.0
authorColeman Watts <coleman@civicrm.org>
Sun, 6 Jul 2014 21:40:00 +0000 (22:40 +0100)
committerColeman Watts <coleman@civicrm.org>
Sun, 6 Jul 2014 21:40:00 +0000 (22:40 +0100)
CRM/Core/Resources.php
css/civicrm.css
css/dashboard.css
js/Common.js

index 706d80de9a923354ca92e37a7a4b643d5f9ffb21..9064f1a54d5761c0f2259f49033f56034fe92574 100644 (file)
@@ -587,9 +587,9 @@ class CRM_Core_Resources {
     // Scripts needed by everyone, everywhere
     // FIXME: This is too long; list needs finer-grained segmentation
     $items = array(
-      "packages/jquery/jquery-1.11.0$min.js",
-      "packages/jquery/jquery-ui/js/jquery-ui-1.10.4.custom$min.js",
-      "packages/jquery/jquery-ui/css/theme/jquery-ui-1.10.4.custom$min.css",
+      "packages/jquery/jquery-1.11.1$min.js",
+      "packages/jquery/jquery-ui/jquery-ui$min.js",
+      "packages/jquery/jquery-ui/jquery-ui$min.css",
 
       "packages/backbone/lodash.compat$min.js",
 
@@ -635,9 +635,9 @@ class CRM_Core_Resources {
     if ($config->lcMessages && $config->lcMessages != 'en_US') {
       // Search for i18n file in order of specificity (try fr-CA, then fr)
       list($lang) = explode('_', $config->lcMessages);
-      $path = "packages/jquery/jquery-ui/development-bundle/ui/" . ($min ? 'minified/' : '') . "i18n";
+      $path = "packages/jquery/jquery-ui/i18n";
       foreach (array(str_replace('_', '-', $config->lcMessages), $lang) as $language) {
-        $localizationFile = "$path/jquery.ui.datepicker-{$language}{$min}.js";
+        $localizationFile = "$path/datepicker-{$language}.js";
         if ($this->getPath('civicrm', $localizationFile)) {
           $items[] = $localizationFile;
           break;
index c618104ea8aa15b48db8639d2d37d7771370c181..bdb6defb4d359b6326f821da6c6ef7428a57d6db 100644 (file)
@@ -2603,7 +2603,7 @@ div.grippie {
 }
 
 .crm-container .dark-icon {
-  background-image: url("../packages/jquery/jquery-ui/css/theme/images/ui-icons_222222_256x240.png")
+  background-image: url("../packages/jquery/jquery-ui/images/ui-icons_222222_256x240.png")
 }
 .crm-container .edit-icon {
   background-position: -64px -112px;
@@ -2918,7 +2918,7 @@ div.grippie {
 }
 
 .crm-status-box-outer.status-start {
-  background: #F8FF03 url("../packages/jquery/jquery-ui/css/theme/images/animated-overlay.gif");
+  background: #F8FF03 url("../packages/jquery/jquery-ui/images/animated-overlay.gif");
 }
 
 .crm-status-box-outer .crm-status-box-inner {
index 739aa51a066ebcfbd00f74991210d076dc4676e8..8bb75fb8bc3848b09ba6da1dd1268ffefd2d8ae7 100644 (file)
@@ -95,7 +95,7 @@
 }
 
 #crm-container .widget-icon {
-  background-image:url('../packages/jquery/jquery-ui/css/theme/images/ui-icons_222222_256x240.png');
+  background-image:url('../packages/jquery/jquery-ui/images/ui-icons_222222_256x240.png');
   height:16px;
   width:16px;
   padding-right:2px;
index 34af6d67c12c9ba8a8aee7765d046d6f606ba828..fa3c91072277a6456d514eddcc243964ff84e882 100644 (file)
@@ -524,12 +524,12 @@ CRM.validate = CRM.validate || {
             $el.data('origSize', null);
           } else {
             $el.data('origSize', {
-              position: 'center',
+              position: {my: 'center', at: 'center', of: window},
               width: $el.dialog('option', 'width'),
               height: $el.dialog('option', 'height')
             });
             var menuHeight = $('#civicrm-menu').height();
-            $el.dialog('option', {width: '100%', height: ($(window).height() - menuHeight), position: [0, menuHeight]});
+            $el.dialog('option', {width: '100%', height: ($(window).height() - menuHeight), position: {my: "top", at: "top+"+menuHeight, of: window}});
           }
           e.preventDefault();
         });