diff options
| author | 2016-08-07 00:17:34 +0200 | |
|---|---|---|
| committer | 2016-08-07 00:17:34 +0200 | |
| commit | 396ebb0fd20400d2aa014bf05187d3e1ae1b26a0 (patch) | |
| tree | 2bb610481d076f7404ed2aef7135f0be0b65e7b0 /p/scripts | |
| parent | 157781c8eb91531627adfe9220ac3197e6b15325 (diff) | |
Minor JavaScript problems with drag & drop
Independent of the jQuery update
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/category.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/p/scripts/category.js b/p/scripts/category.js index 29c049924..eb08ecd6e 100644 --- a/p/scripts/category.js +++ b/p/scripts/category.js @@ -6,17 +6,19 @@ var loading = false, dnd_successful = false; function dragend_process(t) { - t.style.display = 'none'; + t.setAttribute('draggable', 'false'); if (loading) { window.setTimeout(function() { dragend_process(t); }, 50); + return; } if (!dnd_successful) { - t.style.display = 'block'; - t.style.opacity = 1.0; + t.style.display = ''; + t.style.opacity = ''; + t.setAttribute('draggable', 'true'); } else { var parent = $(t.parentNode); $(t).remove(); |
