開発メモ

開発用のメモです。

EC CUBE JQuery バージョンアップ

--- Smarty/templates/admin/design/index.tpl  Thu Dec 18 09:15:37 2014
+++ Smarty/templates/admin/design/index.tpl   Thu Dec 18 09:19:14 2014
@@ -19,12 +19,11 @@
     document.form1.target = "_self";
 }
 
 </script>
 
-<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/ui.core.js"></script>
-<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/ui.sortable.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-ui-1.11.2.js"></script>
 <script type="text/javascript" src="<!--{$TPL_URLPATH}-->js/layout_design.js"></script>
 
 
 <form name="form1" id="form1" method="post" action="?">
     <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
--- Smarty/templates/admin/products/product.tpl   Thu Dec 18 09:15:38 2014
+++ Smarty/templates/admin/products/product.tpl   Thu Dec 18 09:26:43 2014
@@ -52,11 +52,12 @@
             $('#' + target).append(this);
             $(this).attr({selected: false});
         }
     });
     // IE7再描画不具合対策
-    if ($.browser.msie && $.browser.version >= 7) {
+    if (navigator.userAgent.match(/MSIE [17-9]/ig) != null) {
+    // if ($.browser.msie && $.browser.version >= 7) {
         $('#' + select).hide();
         $('#' + select).show();
         $('#' + target).hide();
         $('#' + target).show();
     }
--- Smarty/templates/admin/admin_popup_header.tpl Thu Dec 18 09:15:35 2014
+++ Smarty/templates/admin/admin_popup_header.tpl Thu Dec 18 09:20:56 2014
@@ -30,11 +30,11 @@
 <meta http-equiv="content-script-type" content="text/javascript" />
 <meta http-equiv="content-style-type" content="text/css" />
 <link rel="stylesheet" href="<!--{$TPL_URLPATH}-->css/reset.css" type="text/css" media="all" />
 <link rel="stylesheet" href="<!--{$TPL_URLPATH}-->css/admin_contents.css" type="text/css" media="all" />
 <link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.colorbox/colorbox.css" type="text/css" media="all" />
-<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-1.4.2.min.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-2.1.1.js"></script>
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.js"></script>
 <script type="text/javascript" src="<!--{$TPL_URLPATH}-->js/eccube.admin.js"></script>
 <!-- #2342 次期メジャーバージョン(2.14)にてeccube.legacy.js,eccube.admin.legacy.jsは削除予定.モジュール、プラグインの互換性を考慮して2.13では残します. -->
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.legacy.js"></script>
 <script type="text/javascript" src="<!--{$TPL_URLPATH}-->js/eccube.admin.legacy.js"></script>
--- Smarty/templates/admin/login_frame.tpl    Thu Dec 18 09:15:38 2014
+++ Smarty/templates/admin/login_frame.tpl    Thu Dec 18 09:21:06 2014
@@ -29,11 +29,11 @@
 <meta http-equiv="content-script-type" content="text/javascript">
 <meta http-equiv="content-style-type" content="text/css">
 <meta name="robots" content="noindex,nofollow" />
 <link rel="stylesheet" href="<!--{$TPL_URLPATH}-->css/reset.css" type="text/css" media="all" />
 <link rel="stylesheet" href="<!--{$TPL_URLPATH}-->css/admin_contents.css" type="text/css" media="all" />
-<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-1.4.2.min.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-2.1.1.js"></script>
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.js"></script>
 <!-- #2342 次期メジャーバージョン(2.14)にてeccube.legacy.jsは削除予定.モジュール、プラグインの互換性を考慮して2.13では残します. -->
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.legacy.js"></script>
 <title>管理機能</title>
 <link rel="shortcut icon" href="<!--{$TPL_URLPATH}-->img/common/favicon.ico" />
--- Smarty/templates/admin/main_frame.tpl Thu Dec 18 09:15:38 2014
+++ Smarty/templates/admin/main_frame.tpl Thu Dec 18 09:21:10 2014
@@ -38,11 +38,11 @@
 <script type="text/javascript" src="https://maps-api-ssl.google.com/maps/api/js?sensor=false"></script>
 <!--{else}-->
 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
 <!--{/if}-->
 <!--{/if}-->
-<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-1.4.2.min.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-2.1.1.js"></script>
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.js"></script>
 <script type="text/javascript" src="<!--{$TPL_URLPATH}-->js/eccube.admin.js"></script>
 <!-- #2342 次期メジャーバージョン(2.14)にてeccube.legacy.js,eccube.admin.legacy.jsは削除予定.モジュール、プラグインの互換性を考慮して2.13では残します. -->
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.legacy.js"></script>
 <script type="text/javascript" src="<!--{$TPL_URLPATH}-->js/eccube.admin.legacy.js"></script>
--- Smarty/templates/default/popup_header.tpl Thu Dec 18 09:15:40 2014
+++ Smarty/templates/default/popup_header.tpl Thu Dec 18 09:21:24 2014
@@ -26,11 +26,11 @@
 <meta http-equiv="Content-Type" content="text/html; charset=<!--{$smarty.const.CHAR_CODE}-->" />
 <meta http-equiv="Content-Script-Type" content="text/javascript" />
 <meta http-equiv="Content-Style-Type" content="text/css" />
 <link rel="stylesheet" href="<!--{$TPL_URLPATH}-->css/import.css" type="text/css" media="all" />
 <link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.colorbox/colorbox.css" type="text/css" media="all" />
-<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-1.4.2.min.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-2.1.1.js"></script>
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.js"></script>
 <!-- #2342 次期メジャーバージョン(2.14)にてeccube.legacy.jsは削除予定.モジュール、プラグインの互換性を考慮して2.13では残します. -->
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.legacy.js"></script>
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.colorbox/jquery.colorbox-min.js"></script>
 <title><!--{$arrSiteInfo.shop_name}-->/<!--{$subtitle|h}--></title>
--- Smarty/templates/default/site_frame.tpl   Thu Dec 18 09:15:40 2014
+++ Smarty/templates/default/site_frame.tpl   Thu Dec 18 09:21:33 2014
@@ -42,11 +42,11 @@
 <link rel="shortcut icon" href="<!--{$TPL_URLPATH}-->img/common/favicon.ico" />
 <link rel="icon" type="image/vnd.microsoft.icon" href="<!--{$TPL_URLPATH}-->img/common/favicon.ico" />
 <link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.colorbox/colorbox.css" type="text/css" media="all" />
 <link rel="stylesheet" href="<!--{$TPL_URLPATH}-->css/import.css" type="text/css" media="all" />
 <link rel="alternate" type="application/rss+xml" title="RSS" href="<!--{$smarty.const.HTTP_URL}-->rss/<!--{$smarty.const.DIR_INDEX_PATH}-->" />
-<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-1.4.2.min.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery-2.1.1.js"></script>
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.js"></script>
 <!-- #2342 次期メジャーバージョン(2.14)にてeccube.legacy.jsは削除予定.モジュール、プラグインの互換性を考慮して2.13では残します. -->
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/eccube.legacy.js"></script>
 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.colorbox/jquery.colorbox-min.js"></script>
 <!--{if $tpl_page_class_name === "LC_Page_Abouts"}-->
--- _install/templates/install_frame.tpl  Tue Dec 16 09:22:08 2014
+++ _install/templates/install_frame.tpl  Thu Dec 18 09:21:52 2014
@@ -25,11 +25,11 @@
 <meta http-equiv="Content-Type" content="text/html; charset=<!--{$smarty.const.CHAR_CODE}-->" />
 <meta http-equiv="content-script-type" content="text/javascript" />
 <meta http-equiv="content-style-type" content="text/css" />
 <link rel="stylesheet" href="css/admin_contents.css" type="text/css" media="all" />
 <link rel="stylesheet" href="../js/jquery.colorbox/colorbox.css" type="text/css" media="all" />
-<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
+<script type="text/javascript" src="../js/jquery-2.1.1.js"></script>
 <script type="text/javascript" src="../js/eccube.js"></script>
 <script type="text/javascript" src="../js/jquery.colorbox/jquery.colorbox-min.js"></script>
 
 <style type="text/css">
 #loading{
--- user_data/packages/admin/jquery.multiselect2side/js/jquery.multiselect2side.js    Thu Dec 18 09:16:15 2014
+++ user_data/packages/admin/jquery.multiselect2side/js/jquery.multiselect2side.js    Thu Dec 18 09:27:32 2014
@@ -104,11 +104,12 @@
            // MOVE SELECTED OPTION TO RIGHT, NOT SELECTED TO LEFT
            $(this).find("option:selected").clone().appendTo(rightSel);
            $(this).find("option:not(:selected)").clone().appendTo(leftSel);
 
            // SELECT FIRST LEFT ITEM
-          if (!($.browser.msie && $.browser.version == '6.0'))
+           if (navigator.userAgent.match(/MSIE 6.0/ig) != null) {
+           // if (!($.browser.msie && $.browser.version == '6.0'))
                leftSel.find("option").eq(0).attr("selected", true);
 
            // ON CHANGE REFRESH ALL BUTTON STATUS
            allSel.change(function() {
                var div = $(this).parent().parent();
--- user_data/packages/admin/js/ownersstore.js.php    Thu Dec 18 09:16:15 2014
+++ user_data/packages/admin/js/ownersstore.js.php    Thu Dec 18 09:28:00 2014
@@ -119,11 +119,12 @@
 
         $("#TB_load").remove();
         $("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
 
         // take away IE6
-        if (!(jQuery.browser.msie && jQuery.browser.version < 7)) {
+       if (navigator.userAgent.match(/MSIE [56]/ig) != null) {
+        // if (!(jQuery.browser.msie && jQuery.browser.version < 7)) {
             $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
         }
 
         $("#TB_ajaxWindowTitle").html(title);
         $("#TB_ajaxContent").html(contents);
Twitter: @asahina_alice