Changeset 23417


Ignore:
Timestamp:
2014/05/14 13:54:39 (10 years ago)
Author:
pineray
Message:

#2546 ツールチップのライブラリを jQuery UI に変更

Location:
branches/version-2_13-dev
Files:
21 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/default/products/detail.tpl

    r23138 r23417  
    256256                                <a href="javascript:eccube.changeAction('?product_id=<!--{$arrProduct.product_id|h}-->'); eccube.setModeAndSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id|h}-->');"><img class="hover_change_image" src="<!--{$TPL_URLPATH}-->img/button/btn_add_favorite.jpg" alt="お気に入りに追加" /></a> 
    257257                            <!--{else}--> 
    258                                 <img src="<!--{$TPL_URLPATH}-->img/button/btn_add_favorite_on.jpg" alt="お気に入り登録済" name="add_favorite_product" id="add_favorite_product" /> 
    259                                 <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.tipsy.js"></script> 
     258                                <img src="<!--{$TPL_URLPATH}-->img/button/btn_add_favorite_on.jpg" title="お気に入りに登録済み" alt="お気に入りに登録済み" id="add_favorite_product" /> 
     259                                <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/jquery.ui.core.min.js"></script> 
     260                                <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/jquery.ui.widget.min.js"></script> 
     261                                <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/jquery.ui.position.min.js"></script> 
     262                                <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/jquery.ui.tooltip.min.js"></script> 
    260263                                <script type="text/javascript"> 
    261264                                    var favoriteButton = $("#add_favorite_product"); 
    262                                     favoriteButton.tipsy({gravity: $.fn.tipsy.autoNS, fallback: "お気に入りに登録済み", fade: true }); 
     265                                    favoriteButton.tooltip(); 
    263266 
    264267                                    <!--{if $just_added_favorite == true}--> 
    265                                     favoriteButton.load(function(){$(this).tipsy("show")}); 
     268                                    favoriteButton.load(function(){ $(this).tooltip("open") }); 
    266269                                    $(function(){ 
    267                                         var tid = setTimeout('favoriteButton.tipsy("hide")',5000); 
     270                                        var tid = setTimeout('favoriteButton.tooltip("close")',5000); 
    268271                                    }); 
    269272                                    <!--{/if}--> 
  • branches/version-2_13-dev/data/Smarty/templates/default/site_frame.tpl

    r23416 r23417  
    4444<link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.colorbox/colorbox.css" type="text/css" media="all" /> 
    4545<link rel="stylesheet" href="<!--{$TPL_URLPATH}-->css/import.css" type="text/css" media="all" /> 
     46<!--{if $tpl_page_class_name === "LC_Page_Products_Detail"}--> 
     47    <link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/theme/jquery.ui.core.css" type="text/css" media="all" /> 
     48    <link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/theme/jquery.ui.tooltip.css" type="text/css" media="all" /> 
     49    <link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/theme/jquery.ui.theme.css" type="text/css" media="all" /> 
     50<!--{/if}--> 
    4651<link rel="alternate" type="application/rss+xml" title="RSS" href="<!--{$smarty.const.HTTP_URL}-->rss/<!--{$smarty.const.DIR_INDEX_PATH}-->" /> 
    4752<!--[if lt IE 9]> 
  • branches/version-2_13-dev/html/user_data/packages/default/css/common.css

    r22949 r23417  
    413413    font-size: 140%; 
    414414} 
    415  
    416  
    417 /* Tipsy 
    418 ----------------------------------------------- */ 
    419 .tipsy { 
    420     padding: 5px; 
    421     font-size: 10px; 
    422     position: absolute; 
    423     z-index: 100000; 
    424 } 
    425 .tipsy-inner { 
    426     padding: 5px 8px 4px 8px; 
    427     background-color: black; 
    428     color: white; 
    429     max-width: 200px; 
    430     text-align: center; 
    431 } 
    432 .tipsy-inner { 
    433     border-radius: 3px; 
    434     -moz-border-radius: 3px; 
    435     -webkit-border-radius: 3px; 
    436 } 
    437 .tipsy-arrow { 
    438     position: absolute; 
    439     background: url('../img/ajax/tipsy.gif') no-repeat top left; 
    440     width: 9px; 
    441     height: 5px; 
    442 } 
    443 .tipsy-n .tipsy-arrow { 
    444     top: 0; 
    445     left: 50%; 
    446     margin-left: -4px; 
    447 } 
    448 .tipsy-nw .tipsy-arrow { 
    449     top: 0; 
    450     left: 10px; 
    451 } 
    452 .tipsy-ne .tipsy-arrow { 
    453     top: 0; 
    454     right: 10px; 
    455 } 
    456 .tipsy-s .tipsy-arrow { 
    457     bottom: 0; 
    458     left: 50%; 
    459     margin-left: -4px; 
    460     background-position: bottom left; 
    461 } 
    462 .tipsy-sw .tipsy-arrow { 
    463     bottom: 0; 
    464     left: 10px; 
    465     background-position: bottom left; 
    466 } 
    467 .tipsy-se .tipsy-arrow { 
    468     bottom: 0; 
    469     right: 10px; 
    470     background-position: bottom left; 
    471 } 
    472 .tipsy-e .tipsy-arrow { 
    473     top: 50%; 
    474     margin-top: -4px; 
    475     right: 0; 
    476     width: 5px; 
    477     height: 9px; 
    478     background-position: top right; 
    479 } 
    480 .tipsy-w .tipsy-arrow { 
    481     top: 50%; 
    482     margin-top: -4px; 
    483     left: 0; 
    484     width: 5px; 
    485     height: 9px; 
    486 } 
Note: See TracChangeset for help on using the changeset viewer.