mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 17:57:38 +00:00
Monotone-Parent: b3b6f425c01979bb9afdf39c7034dfd2131f4dd3
Monotone-Revision: 24c2f8206b434e2894e6aa447358893a06cc7dc7 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-29T02:49:43 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -205,7 +205,8 @@ Element.addMethods(
|
||||
|
||||
setCaretTo: function(element, pos) {
|
||||
element = $(element);
|
||||
if (element.selectionStart) { // For Mozilla and Safari
|
||||
if (typeof(element.selectionStart)
|
||||
!= "undefined") { // For Mozilla and Safari
|
||||
element.focus();
|
||||
element.setSelectionRange(pos, pos);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user