Ignore:
Timestamp:
2014/05/14 18:41:11 (12 years ago)
Author:
pineray
Message:

#2549 jQuery Mobile への依存を無くす

ローディング画像の表示をオリジナルのものへ変更.

Location:
branches/version-2_13-dev/html/user_data/packages/sphone
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/html/user_data/packages/sphone/css/common.css

    r22931 r23419  
    676676    width: 100% !important; 
    677677} 
     678/*------------------------------------------------- 
     679ローディング画像 
     680----------------------------------------------- */ 
     681div.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} 
     695div.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  
    5959     ------------------------------------------*/ 
    6060    eccube.addFavoriteSphone = function(favoriteProductId) { 
    61         $.mobile.showPageLoadingMsg(); 
     61        eccube.showLoading(); 
    6262        //送信データを準備 
    6363        var postData = {}; 
     
    7777            error: function(XMLHttpRequest, textStatus){ 
    7878                window.alert(textStatus); 
    79                 $.mobile.hidePageLoadingMsg(); 
     79                eccube.hideLoading(); 
    8080            }, 
    8181            success: function(result){ 
     
    8686                    window.alert("お気に入りの登録に失敗しました"); 
    8787                } 
    88                 $.mobile.hidePageLoadingMsg(); 
     88                eccube.hideLoading(); 
    8989            } 
    9090        }); 
     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(); 
    91106    }; 
    92107 
Note: See TracChangeset for help on using the changeset viewer.