Ignore:
Timestamp:
2013/05/27 23:04:45 (13 years ago)
Author:
Seasoft
Message:

#2253 (スマートフォン 新着情報の個別記事表示が動作しない)

File:
1 edited

Legend:

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

    r22583 r22839  
    101101    function getNewsDetail(newsId) { 
    102102        if (loadingState == 0) { 
     103            loadingState = 1; 
    103104            $.mobile.showPageLoadingMsg(); 
    104             loadingState = 1; 
    105105            $.ajax({ 
    106106                url: "<!--{$smarty.const.ROOT_URLPATH}-->frontparts/bloc/news.php", 
     
    121121                        loadingState = 0; 
    122122                    } 
    123                     else if (result[0] != null) { 
    124                         var news = result[0]; 
     123                    else if (result != null) { 
     124                        var news = result; 
    125125                        var maxCnt = 0; 
    126126 
     
    146146                        //ダイアログが開き終わるまで待機 
    147147                        setTimeout( function() { 
     148                            $.mobile.hidePageLoadingMsg(); 
    148149                            loadingState = 0; 
    149                             $.mobile.hidePageLoadingMsg(); 
    150150                        }, 1000); 
     151                    } 
     152                    else { 
     153                        $.mobile.hidePageLoadingMsg(); 
     154                        loadingState = 0; 
     155                        alert('取得できませんでした。'); 
    151156                    } 
    152157                } 
Note: See TracChangeset for help on using the changeset viewer.