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

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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/sphone/frontparts/bloc/news.tpl

    r23230 r23419  
    4747 
    4848    function getNews(limit) { 
    49         $.mobile.showPageLoadingMsg(); 
     49        eccube.showLoading(); 
    5050        var i = limit; 
    5151 
     
    5858            error: function(XMLHttpRequest, textStatus, errorThrown){ 
    5959                alert(textStatus); 
    60                 $.mobile.hidePageLoadingMsg(); 
     60                eccube.hideLoading(); 
    6161            }, 
    6262            success: function(result){ 
     
    9393                    newsPageNo++; 
    9494                } 
    95                 $.mobile.hidePageLoadingMsg(); 
     95                eccube.hideLoading(); 
    9696            } 
    9797        }); 
     
    102102        if (loadingState == 0) { 
    103103            loadingState = 1; 
    104             $.mobile.showPageLoadingMsg(); 
     104            eccube.showLoading(); 
    105105            $.ajax({ 
    106106                url: "<!--{$smarty.const.ROOT_URLPATH}-->frontparts/bloc/news.php", 
     
    112112                error: function(XMLHttpRequest, textStatus, errorThrown){ 
    113113                    alert(textStatus); 
    114                     $.mobile.hidePageLoadingMsg(); 
     114                    eccube.hideLoading(); 
    115115                    loadingState = 0; 
    116116                }, 
     
    118118                    if (result.error) { 
    119119                        alert(result.error); 
    120                         $.mobile.hidePageLoadingMsg(); 
     120                        eccube.hideLoading(); 
    121121                        loadingState = 0; 
    122122                    } 
     
    145145                        //ダイアログが開き終わるまで待機 
    146146                        setTimeout( function() { 
    147                             $.mobile.hidePageLoadingMsg(); 
     147                            eccube.hideLoading(); 
    148148                            loadingState = 0; 
    149149                        }, 1000); 
    150150                    } 
    151151                    else { 
    152                         $.mobile.hidePageLoadingMsg(); 
     152                        eccube.hideLoading(); 
    153153                        loadingState = 0; 
    154154                        alert('取得できませんでした。'); 
Note: See TracChangeset for help on using the changeset viewer.