Changeset 23197


Ignore:
Timestamp:
2013/09/09 11:57:11 (11 years ago)
Author:
michael_nelson
Message:

#2101 新着情報の本文を未入力で登録した際、スマートフォン版でJavaScriptエラーが発生します

File:
1 edited

Legend:

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

    r22960 r23197  
    139139 
    140140                        //コメントをセット(iphone4の場合、innerHTMLの再描画が行われない為、タイマーで無理やり再描画させる) 
    141                         setTimeout( function() { 
    142                             $("#newsComment").html(news.news_comment.replace(/\n/g,"<br />")); 
    143                         }, 10); 
    144  
     141                        if($("#newsComment").val() != ''){ 
     142                            setTimeout( function() { 
     143                                $("#newsComment").html(news.news_comment.replace(/\n/g,"<br />")); 
     144                            }, 10); 
     145                        } 
    145146                        $.mobile.changePage('#windowcolumn', {transition: "slideup"}); 
    146147                        //ダイアログが開き終わるまで待機 
Note: See TracChangeset for help on using the changeset viewer.