mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-05 06:08:46 -05:00
removed js test code
This commit is contained in:
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user