diff --git a/lib/javascript-static.js b/lib/javascript-static.js index 5e128e24744..4b7e1450b7b 100644 --- a/lib/javascript-static.js +++ b/lib/javascript-static.js @@ -401,22 +401,22 @@ function fix_column_width(colName) { /* - Insert myValue at current cursor position -*/ + Insert myValue at current cursor position + */ function insertAtCursor(myField, myValue) { - // IE support - if (document.selection) { - myField.focus(); - sel = document.selection.createRange(); - sel.text = myValue; - } - // Mozilla/Netscape support - else if (myField.selectionStart || myField.selectionStart == '0') { - var startPos = myField.selectionStart; - var endPos = myField.selectionEnd; - myField.value = myField.value.substring(0, startPos) - + myValue + myField.value.substring(endPos, myField.value.length); - } else { - myField.value += myValue; - } + // IE support + if (document.selection) { + myField.focus(); + sel = document.selection.createRange(); + sel.text = myValue; + } + // Mozilla/Netscape support + else if (myField.selectionStart || myField.selectionStart == '0') { + var startPos = myField.selectionStart; + var endPos = myField.selectionEnd; + myField.value = myField.value.substring(0, startPos) + + myValue + myField.value.substring(endPos, myField.value.length); + } else { + myField.value += myValue; + } } diff --git a/theme/chameleon/header.html b/theme/chameleon/header.html index 03cedb173e3..37f0dbb7dde 100644 --- a/theme/chameleon/header.html +++ b/theme/chameleon/header.html @@ -25,8 +25,8 @@
-