mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
Minor JavaScript problems with drag & drop
Independent of the jQuery update
This commit is contained in:
1 parent
157781c8eb
commit
396ebb0fd2
1 file changed
+5
-3
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user