remove delete-on-autocomplete functionality
This commit is contained in:
@@ -309,11 +309,6 @@ Autocomplete.insert_completion = function(input, completion) {
|
|||||||
var regexp = new RegExp("(" + Autocomplete.TAG_PREFIXES + ")?\\S+$", "g");
|
var regexp = new RegExp("(" + Autocomplete.TAG_PREFIXES + ")?\\S+$", "g");
|
||||||
before_caret_text = before_caret_text.replace(regexp, "$1") + completion + " ";
|
before_caret_text = before_caret_text.replace(regexp, "$1") + completion + " ";
|
||||||
|
|
||||||
if (Utility.meta('current-user-id') === '1') {
|
|
||||||
// is this actually better?
|
|
||||||
after_caret_text = after_caret_text.replace(/^\S+/, "");
|
|
||||||
}
|
|
||||||
|
|
||||||
input.value = before_caret_text + after_caret_text;
|
input.value = before_caret_text + after_caret_text;
|
||||||
input.selectionStart = input.selectionEnd = before_caret_text.length;
|
input.selectionStart = input.selectionEnd = before_caret_text.length;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user