removed js test code

This commit is contained in:
vabene1111
2020-03-16 22:50:52 +01:00
parent 9853cecabb
commit c8eaa2a349

View File

@@ -108,23 +108,6 @@
return editor; return editor;
}; };
function selectText(node) {
if (document.body.createTextRange) {
const range = document.body.createTextRange();
range.moveToElementText(node);
range.select();
} else if (window.getSelection) {
const selection = window.getSelection();
const range = document.createRange();
range.selectNodeContents(node);
selection.removeAllRanges();
selection.addRange(range);
} else {
console.warn("Could not select text in node: Unsupported browser.");
}
}
//converts multiselct in recipe edit to searchable multiselect //converts multiselct in recipe edit to searchable multiselect
//shitty solution that needs to be redone at some point //shitty solution that needs to be redone at some point
$(document).ready(function () { $(document).ready(function () {
@@ -132,9 +115,9 @@
let ingredients = {{ ingredients|safe }} let ingredients = {{ ingredients|safe }}
ingredients.forEach(function (cur, i) { ingredients.forEach(function (cur, i) {
cur.delete = false cur.delete = false
}); });
let data = ingredients; let data = ingredients;