js: drop IE support

This commit is contained in:
Zankaria
2024-09-19 22:54:04 +02:00
parent 4332b70363
commit fd309443ea
2 changed files with 2 additions and 14 deletions

View File

@@ -307,12 +307,7 @@ function citeReply(id, with_link) {
return false;
}
if (document.selection) {
// IE
textarea.focus();
let sel = document.selection.createRange();
sel.text = '>>' + id + '\n';
} else if (textarea.selectionStart || textarea.selectionStart == '0') {
if (textarea.selectionStart || textarea.selectionStart == '0') {
let start = textarea.selectionStart;
let end = textarea.selectionEnd;
textarea.value = textarea.value.substring(0, start) + '>>' + id + '\n' + textarea.value.substring(end, textarea.value.length);