登录用户评论获取用户名方式修改
This commit is contained in:
15
ease/css/ease.min.css
vendored
15
ease/css/ease.min.css
vendored
@@ -1,3 +1,18 @@
|
||||
/**
|
||||
* Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
html,body,div,ul,li{margin:0;padding:0}
|
||||
body{font-family:Verdana,arial,'\5fae\8f6f\96c5\9ed1';font-size:12px;background-color:#fcfcfc}
|
||||
::selection{background-color:#d5d5d5;color:#fcfcfc}
|
||||
|
15
ease/js/ease.min.js
vendored
15
ease/js/ease.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -124,14 +124,18 @@
|
||||
|
||||
var addComment = function(result, state) {
|
||||
var commentHTML = '<div id="' + result.oId + '"><img class="comment-header" \
|
||||
title="' + $("#commentName" + state).val() + '" alt="' + $("#commentName" + state).val() +
|
||||
'" src="' + result.commentThumbnailURL + '"/><div class="comment-panel"><div class="left">' + result.replyNameHTML;
|
||||
title="' + result.userName + '" alt="' + result.userName +
|
||||
'" src="' + result.commentThumbnailURL
|
||||
+ '"/><div class="comment-panel"><div class="left">' + result.replyNameHTML;
|
||||
|
||||
if (state !== "") {
|
||||
var commentOriginalCommentName = $("#" + page.currentCommentId + " .comment-panel>.left a").first().text();
|
||||
commentHTML += ' @ <a href="${servePath}' + result.commentSharpURL.split("#")[0] + '#' + page.currentCommentId + '"'
|
||||
var commentOriginalCommentName = $("#" + page.currentCommentId
|
||||
+ " .comment-panel>.left a").first().text();
|
||||
commentHTML += ' @ <a href="${servePath}'
|
||||
+ result.commentSharpURL.split("#")[0] + '#' + page.currentCommentId + '"'
|
||||
+ 'onmouseover="page.showComment(this, \'' + page.currentCommentId + '\', 20);"'
|
||||
+ 'onmouseout="page.hideComment(\'' + page.currentCommentId + '\')">' + commentOriginalCommentName + '</a>';
|
||||
+ 'onmouseout="page.hideComment(\'' + page.currentCommentId + '\')">'
|
||||
+ commentOriginalCommentName + '</a>';
|
||||
}
|
||||
|
||||
commentHTML += '</div><div class="right ft-gray">' + result.commentDate.substring(2, 16)
|
||||
@@ -141,7 +145,7 @@
|
||||
+ '</div></div><span class="clear"></span></div>';
|
||||
|
||||
return commentHTML;
|
||||
}
|
||||
};
|
||||
|
||||
var replyTo = function(id) {
|
||||
var commentFormHTML = "<table class='form' id='replyForm'>";
|
||||
|
Reference in New Issue
Block a user