Commit cecd26e5bcaf0aac9589538f61275538f91f136d

Authored by jarrett
1 parent dec2e9c4

KTC-722 Added Utility function to disable DnD in elements

Commited by: Jarrett Jordaan

Reviewed by: Megan Watson
Showing 1 changed file with 7 additions and 0 deletions
resources/js/kt-utility.js
... ... @@ -107,3 +107,10 @@ function Set() {
107 107 forEach(arguments, function(k) { set[k] = 1; });
108 108 return set;
109 109 }
  110 +
  111 +// Disable DnD on element
  112 +// Element has to have a readOnly status set to readonly
  113 +function disableDnd(el_id){
  114 + el = document.getElementById(el_id);
  115 + el.removeAttribute('readOnly');
  116 +}
110 117 \ No newline at end of file
... ...