1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

[group discussion] bugfix & improvement

This commit is contained in:
llj
2016-03-25 12:02:30 +08:00
parent dc373c956d
commit 63f30b3657
10 changed files with 96 additions and 56 deletions

View File

@@ -829,6 +829,17 @@ define([
}
}
return group_name;
},
setCaretPosition:function(input, pos) {
var range;
if (document.selection) {
range = input.createTextRange();
range.move("character", pos);
return range.select();
} else {
return input.setSelectionRange(pos, pos);
}
}
}