mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 19:01:42 +00:00
[@]format str before giving it to ele_cp
This commit is contained in:
@@ -118,7 +118,7 @@ function addAtAutocomplete(ele_id, container_id, data, ele_css) {
|
||||
end_str = $(this).val().substring(pos);
|
||||
str = $(this).val().substring(0, pos);
|
||||
}
|
||||
ele_cp.html(str + '<span id="' + ele_id.substring(1) + '-at">@</span>');
|
||||
ele_cp.html(str.replace(/</g, '<').replace(/>/g, '>').replace(/`/g, '`').replace(/"/g, '"').replace(/\r\n|\r|\n/g, "<br />") + '<span id="' + ele_id.substring(1) + '-at">@</span>');
|
||||
var line_height = parseInt(ele_cp.css('line-height')),
|
||||
at_pos = $(ele_id + '-at').position(),
|
||||
x = at_pos.left,
|
||||
|
Reference in New Issue
Block a user