at链接问题修改
This commit is contained in:
parent
aa951cd7b9
commit
8ea9430318
|
@ -35,7 +35,7 @@ var enableAt = function(_editor) {
|
|||
var at_config = {
|
||||
at: "@",
|
||||
data: names,
|
||||
insertTpl: '<span class="at" data-user-id="${userid}">@${name}(${login})</span>',
|
||||
insertTpl: '<span class="at" data-user-id="${userid}"><a href="/users/${userid}">@${name}(${login})</a></span>',
|
||||
displayTpl: "<li>${name} <small>${login}</small></li>",
|
||||
searchKey: 'searchKey',
|
||||
limit: 200
|
||||
|
|
|
@ -49,4 +49,5 @@
|
|||
}
|
||||
|
||||
/* @功能 定义 */
|
||||
span.at {color:#269ac9;}
|
||||
span.at {color:#269ac9;}
|
||||
span.at a{color:#269ac9;text-decoration: none;}
|
|
@ -45,4 +45,5 @@
|
|||
|
||||
|
||||
.ke-content blockquote {margin:15px 10px;border:2px solid #eee;padding:5px 5px 5px 35px;background:#f4f5f7 url('../img/blockquote.gif') no-repeat left top;color:#060;font-size:9pt;}
|
||||
span.at {color:#269ac9;}
|
||||
span.at {color:#269ac9;}
|
||||
span.at a{color:#269ac9;text-decoration: none;}
|
|
@ -991,14 +991,3 @@ function showNormalImage(id) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
$(function(){
|
||||
//at 加链接
|
||||
$("span.at").hover(function(){
|
||||
$(this).css('cursor', 'pointer');
|
||||
});
|
||||
$("span.at").live('click', function(){
|
||||
var userId = $(this).attr('data-user-id');
|
||||
$(window.location).attr('href', '/users/'+userId);
|
||||
});
|
||||
});
|
|
@ -1387,6 +1387,7 @@ a:hover.blueCir{ background:#3598db; color:#fff;}
|
|||
|
||||
/* @功能 定义 */
|
||||
span.at {color:#269ac9;}
|
||||
span.at a{color:#269ac9;text-decoration: none;}
|
||||
|
||||
.relatePInfo {text-align: left; position:absolute; background-color:#ffffff; padding:3px 8px; white-space:nowrap; box-shadow:0px 2px 8px rgba(146, 153, 169, 0.5); z-index:999; color:#585858; cursor:pointer; display:none;}
|
||||
/*问题状态图片*/
|
||||
|
|
|
@ -918,6 +918,7 @@ a.resourcesTypeUser {background:url(images/homepage_icon.png) -178px -453px no-r
|
|||
|
||||
/* @功能 定义 */
|
||||
span.at {color:#269ac9;}
|
||||
span.at a{color:#269ac9;text-decoration: none;}
|
||||
.del_line{text-decoration:line-through !important;}
|
||||
/*转发样式*/
|
||||
.shareDP {width:415px; height:auto; border:3px solid #269ac9; padding-left:16px; padding-bottom:16px; background-color:#ffffff; position:absolute; z-index:1000;}
|
||||
|
|
Loading…
Reference in New Issue