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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user