summaryrefslogtreecommitdiff
path: root/lib/scripts/edit.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-01-17 16:58:45 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-01-17 16:58:45 +0100
commit7e487fcf7005d1e1465ef6acb332cc1009676413 (patch)
tree14a1375a7d1c6a0cd62c66c127ea411b83a650b3 /lib/scripts/edit.js
parent1ed1b9511ffd2fd1ba4efbcdf902d56e1dadedc2 (diff)
downloadrpg-7e487fcf7005d1e1465ef6acb332cc1009676413.tar.gz
rpg-7e487fcf7005d1e1465ef6acb332cc1009676413.tar.bz2
renamed conflicting JavaScript functions FS#2915
Diffstat (limited to 'lib/scripts/edit.js')
-rw-r--r--lib/scripts/edit.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js
index b1dbff683..56c185db7 100644
--- a/lib/scripts/edit.js
+++ b/lib/scripts/edit.js
@@ -148,7 +148,7 @@ function addBtnActionSignature($btn, props, edid) {
function currentHeadlineLevel(textboxId){
var field = jQuery('#' + textboxId)[0],
s = false,
- opts = [field.value.substr(0,getSelection(field).start)];
+ opts = [field.value.substr(0,DWgetSelection(field).start)];
if (field.form.prefix) {
// we need to look in prefix context
opts.push(field.form.prefix.value);
@@ -217,10 +217,10 @@ jQuery(function () {
}
// set focus and place cursor at the start
- var sel = getSelection($edit_text[0]);
+ var sel = DWgetSelection($edit_text[0]);
sel.start = 0;
sel.end = 0;
- setSelection(sel);
+ DWsetSelection(sel);
$edit_text.focus();
}