diff --git a/resources/js/kt-utility.js b/resources/js/kt-utility.js index b916900..edceae9 100644 --- a/resources/js/kt-utility.js +++ b/resources/js/kt-utility.js @@ -107,3 +107,10 @@ function Set() { forEach(arguments, function(k) { set[k] = 1; }); return set; } + +// Disable DnD on element +// Element has to have a readOnly status set to readonly +function disableDnd(el_id){ + el = document.getElementById(el_id); + el.removeAttribute('readOnly'); +} \ No newline at end of file