- Timestamp:
- 2014/05/14 18:41:11 (12 years ago)
- Location:
- branches/version-2_13-dev
- Files:
-
- 1 added
- 8 edited
-
data/Smarty/templates/sphone/frontparts/bloc/news.tpl (modified) (7 diffs)
-
data/Smarty/templates/sphone/mypage/delivery.tpl (modified) (3 diffs)
-
data/Smarty/templates/sphone/mypage/favorite.tpl (modified) (3 diffs)
-
data/Smarty/templates/sphone/mypage/history.tpl (modified) (3 diffs)
-
data/Smarty/templates/sphone/mypage/index.tpl (modified) (3 diffs)
-
data/Smarty/templates/sphone/products/list.tpl (modified) (3 diffs)
-
html/user_data/packages/sphone/css/common.css (modified) (1 diff)
-
html/user_data/packages/sphone/img/common/ajax-loader.gif (added)
-
html/user_data/packages/sphone/js/eccube.sphone.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/Smarty/templates/sphone/frontparts/bloc/news.tpl
r23230 r23419 47 47 48 48 function getNews(limit) { 49 $.mobile.showPageLoadingMsg();49 eccube.showLoading(); 50 50 var i = limit; 51 51 … … 58 58 error: function(XMLHttpRequest, textStatus, errorThrown){ 59 59 alert(textStatus); 60 $.mobile.hidePageLoadingMsg();60 eccube.hideLoading(); 61 61 }, 62 62 success: function(result){ … … 93 93 newsPageNo++; 94 94 } 95 $.mobile.hidePageLoadingMsg();95 eccube.hideLoading(); 96 96 } 97 97 }); … … 102 102 if (loadingState == 0) { 103 103 loadingState = 1; 104 $.mobile.showPageLoadingMsg();104 eccube.showLoading(); 105 105 $.ajax({ 106 106 url: "<!--{$smarty.const.ROOT_URLPATH}-->frontparts/bloc/news.php", … … 112 112 error: function(XMLHttpRequest, textStatus, errorThrown){ 113 113 alert(textStatus); 114 $.mobile.hidePageLoadingMsg();114 eccube.hideLoading(); 115 115 loadingState = 0; 116 116 }, … … 118 118 if (result.error) { 119 119 alert(result.error); 120 $.mobile.hidePageLoadingMsg();120 eccube.hideLoading(); 121 121 loadingState = 0; 122 122 } … … 145 145 //ダイアログが開き終わるまで待機 146 146 setTimeout( function() { 147 $.mobile.hidePageLoadingMsg();147 eccube.hideLoading(); 148 148 loadingState = 0; 149 149 }, 1000); 150 150 } 151 151 else { 152 $.mobile.hidePageLoadingMsg();152 eccube.hideLoading(); 153 153 loadingState = 0; 154 154 alert('取得できませんでした。'); -
branches/version-2_13-dev/data/Smarty/templates/sphone/mypage/delivery.tpl
r23101 r23419 90 90 91 91 function getDelivery(limit) { 92 $.mobile.showPageLoadingMsg();92 eccube.showLoading(); 93 93 var i = limit; 94 94 //送信データを準備 … … 109 109 error: function(XMLHttpRequest, textStatus, errorThrown){ 110 110 alert(textStatus); 111 $.mobile.hidePageLoadingMsg();111 eccube.hideLoading(); 112 112 }, 113 113 success: function(result){ … … 147 147 $("#btn_more_delivery").hide(); 148 148 } 149 $.mobile.hidePageLoadingMsg();149 eccube.hideLoading(); 150 150 } 151 151 }); -
branches/version-2_13-dev/data/Smarty/templates/sphone/mypage/favorite.tpl
r23230 r23419 102 102 103 103 function getProducts(limit) { 104 $.mobile.showPageLoadingMsg();104 eccube.showLoading(); 105 105 var i = limit; 106 106 //送信データを準備 … … 121 121 error: function(XMLHttpRequest, textStatus, errorThrown){ 122 122 alert(textStatus); 123 $.mobile.hidePageLoadingMsg();123 eccube.hideLoading(); 124 124 }, 125 125 success: function(result){ … … 168 168 $("#btn_more_product").hide(); 169 169 } 170 $.mobile.hidePageLoadingMsg();170 eccube.hideLoading(); 171 171 } 172 172 }); -
branches/version-2_13-dev/data/Smarty/templates/sphone/mypage/history.tpl
r23233 r23419 180 180 <script> 181 181 function getMailDetail(send_id) { 182 $.mobile.showPageLoadingMsg();182 eccube.showLoading(); 183 183 $.ajax({ 184 184 type: "GET", … … 189 189 error: function(XMLHttpRequest, textStatus, errorThrown){ 190 190 alert(textStatus); 191 $.mobile.hidePageLoadingMsg();191 eccube.hideLoading(); 192 192 }, 193 193 success: function(result){ … … 202 202 setTimeout( function() { 203 203 loadingState = 0; 204 $.mobile.hidePageLoadingMsg();204 eccube.hideLoading(); 205 205 }, 1000); 206 206 } -
branches/version-2_13-dev/data/Smarty/templates/sphone/mypage/index.tpl
r23304 r23419 98 98 99 99 function getHistory(limit) { 100 $.mobile.showPageLoadingMsg();100 eccube.showLoading(); 101 101 var i = limit; 102 102 //送信データを準備 … … 117 117 error: function(XMLHttpRequest, textStatus, errorThrown){ 118 118 alert(textStatus); 119 $.mobile.hidePageLoadingMsg();119 eccube.hideLoading(); 120 120 }, 121 121 success: function(result){ … … 158 158 $("#btn_more_history").hide(); 159 159 } 160 $.mobile.hidePageLoadingMsg();160 eccube.hideLoading(); 161 161 } 162 162 }); -
branches/version-2_13-dev/data/Smarty/templates/sphone/products/list.tpl
r23122 r23419 132 132 133 133 function getProducts(limit) { 134 $.mobile.showPageLoadingMsg();134 eccube.showLoading(); 135 135 var i = limit; 136 136 //送信データを準備 … … 150 150 error: function(XMLHttpRequest, textStatus, errorThrown){ 151 151 alert(textStatus); 152 $.mobile.hidePageLoadingMsg();152 eccube.hideLoading(); 153 153 }, 154 154 success: function(result){ … … 212 212 $("#btn_more_product").hide(); 213 213 } 214 $.mobile.hidePageLoadingMsg();214 eccube.hideLoading(); 215 215 } 216 216 }); -
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.
