Changeset 23419 for branches/version-2_13-dev/html/user_data
- Timestamp:
- 2014/05/14 18:41:11 (12 years ago)
- Location:
- branches/version-2_13-dev/html/user_data/packages/sphone
- Files:
-
- 1 added
- 2 edited
-
css/common.css (modified) (1 diff)
-
img/common/ajax-loader.gif (added)
-
js/eccube.sphone.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/html/user_data/packages/sphone/css/common.css
r22931 r23419 676 676 width: 100% !important; 677 677 } 678 /*------------------------------------------------- 679 ローディング画像 680 ----------------------------------------------- */ 681 div.loading-overlay { 682 display: block; 683 opacity: .3; 684 padding: 0; 685 width: 32px; 686 height: 32px; 687 margin-left: -16px; 688 margin-top: -16px; 689 z-index: 9999999; 690 position: fixed; 691 top: 50%; 692 left: 50%; 693 border: 0; 694 } 695 div.loading-overlay span.loading-image { 696 display: block; 697 background: url(../img/common/ajax-loader.gif) 0 0 no-repeat; 698 background-size: 32px 32px; 699 margin: 0; 700 padding: 0; 701 width: 32px; 702 height: 32px; 703 } -
branches/version-2_13-dev/html/user_data/packages/sphone/js/eccube.sphone.js
r23383 r23419 59 59 ------------------------------------------*/ 60 60 eccube.addFavoriteSphone = function(favoriteProductId) { 61 $.mobile.showPageLoadingMsg();61 eccube.showLoading(); 62 62 //送信データを準備 63 63 var postData = {}; … … 77 77 error: function(XMLHttpRequest, textStatus){ 78 78 window.alert(textStatus); 79 $.mobile.hidePageLoadingMsg();79 eccube.hideLoading(); 80 80 }, 81 81 success: function(result){ … … 86 86 window.alert("お気に入りの登録に失敗しました"); 87 87 } 88 $.mobile.hidePageLoadingMsg();88 eccube.hideLoading(); 89 89 } 90 90 }); 91 }; 92 93 /** 94 * ローディング画像を表示する 95 */ 96 eccube.showLoading = function() { 97 var over = '<div class="loading-overlay"><span class="loading-image"></span></div>'; 98 $(over).appendTo('body'); 99 }; 100 101 /** 102 * ローディング画像を削除する 103 */ 104 eccube.hideLoading = function() { 105 $('.loading-overlay').remove(); 91 106 }; 92 107
Note: See TracChangeset
for help on using the changeset viewer.
