bug fixed

This commit is contained in:
Van 2015-10-01 10:22:49 +08:00
parent fac6c9d327
commit e92ba2f8a8

View File

@ -95,12 +95,14 @@
</form> </form>
</td> </td>
</tr> </tr>
<#else>
<tr colspan="2">
<td>&nbsp;</td>
</tr>
</#if> </#if>
<tr> <tr>
<td> <td align="right" colspan="2">
<span class="text-danger" id="commentErrorTip"></span> <span class="text-danger" id="commentErrorTip"></span>
</td>
<td align="right">
<button class="btn btn-success" id="submitCommentButton" onclick="page.submitComment();">${submmitCommentLabel}</button> <button class="btn btn-success" id="submitCommentButton" onclick="page.submitComment();">${submmitCommentLabel}</button>
</td> </td>
</tr> </tr>
@ -152,7 +154,7 @@
commentHTML += '<span class="gray">•' + result.commentDate.substring(2, 16) commentHTML += '<span class="gray">•' + result.commentDate.substring(2, 16)
+ '• <a rel="nofollow" href="javascript:replyTo(' + '• <a rel="nofollow" href="javascript:replyTo('
+ result.oId + ');">Reply</a></span></div><div class="row">' + result.oId + ');">Reply</a></span></div><div class="row">' +
Util.replaceEmString($("#comment" + state).val().replace(/</g, "&lt;"). Util.replaceEmString($("#comment" + state).val().replace(/</g, "&lt;").
replace(/>/g, "&gt;").replace(/\n/g, "<br/>")) + '</div>'; replace(/>/g, "&gt;").replace(/\n/g, "<br/>")) + '</div>';