Commit 66b918fd authored by asseldonk's avatar asseldonk
Browse files

filebrowser: added dragend event

parent 57ee6a36
......@@ -200,8 +200,6 @@ var FileBaseEvents = Class.extend({
node.on('drop', function(event) {
event.preventDefault();
$(node).removeClass("file-dragover");
$(node).removeClass("file-dragstart");
fileToBeMoved = (event.originalEvent.dataTransfer.getData('dataName'));
if (fileToBeMoved == "") {
if (data.type == "d") {
......@@ -215,10 +213,14 @@ var FileBaseEvents = Class.extend({
var destination = self.FileBase.workflow.path + '/' + data.name;
self.FileBase.actions.move(source, destination);
}
});
node.on('dragend', function(event) {
event.preventDefault();
$(node).removeClass("file-dragover");
$(node).removeClass("file-dragstart");
});
}
});
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment