Skip to content
Snippets Groups Projects
Commit 8e27b725 authored by Simon Birnbach's avatar Simon Birnbach
Browse files

Fixed cancelling upload of same file to folder and subfolder

parent a384fcb9
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,7 @@ table tr[data-type="dir"] td.filename a.name {font-weight:bold; } ...@@ -62,6 +62,7 @@ table tr[data-type="dir"] td.filename a.name {font-weight:bold; }
table td.filename a.name input, table td.filename a.name form { width:100%; cursor:text; } table td.filename a.name input, table td.filename a.name form { width:100%; cursor:text; }
table td.filename a, table td.login, table td.logout, table td.download, table td.upload, table td.create, table td.delete { padding:.2em .5em .5em 0; } table td.filename a, table td.login, table td.logout, table td.download, table td.upload, table td.create, table td.delete { padding:.2em .5em .5em 0; }
table td.filename .nametext, .uploadtext, .modified { float:left; padding:.3em 0; } table td.filename .nametext, .uploadtext, .modified { float:left; padding:.3em 0; }
// TODO fix usability bug (accidental file/folder selection)
//table td.filename .nametext { width:60%; } //table td.filename .nametext { width:60%; }
table td.filename .uploadtext { font-weight:normal; margin-left:.5em; } table td.filename .uploadtext { font-weight:normal; margin-left:.5em; }
table td.filename form { float:left; font-size:.85em; } table td.filename form { float:left; font-size:.85em; }
......
...@@ -172,6 +172,7 @@ $(document).ready(function() { ...@@ -172,6 +172,7 @@ $(document).ready(function() {
}); });
// drag&drop support using jquery.fileupload // drag&drop support using jquery.fileupload
// TODO use OC.dialogs
$(document).bind('drop dragover', function (e) { $(document).bind('drop dragover', function (e) {
e.preventDefault(); // prevent browser from doing anything, if file isn't dropped in dropZone e.preventDefault(); // prevent browser from doing anything, if file isn't dropped in dropZone
}); });
...@@ -242,6 +243,7 @@ $(document).ready(function() { ...@@ -242,6 +243,7 @@ $(document).ready(function() {
$('#notification').fadeIn(); $('#notification').fadeIn();
} }
}); });
uploadingFiles[dirName+"/"+files[i].name] = jqXHR;
} else { } else {
var jqXHR = $('.file_upload_start').fileupload('send', {files: files[i]}) var jqXHR = $('.file_upload_start').fileupload('send', {files: files[i]})
.success(function(result, textStatus, jqXHR) { .success(function(result, textStatus, jqXHR) {
...@@ -270,9 +272,9 @@ $(document).ready(function() { ...@@ -270,9 +272,9 @@ $(document).ready(function() {
$('#notification').fadeIn(); $('#notification').fadeIn();
} }
}); });
}
uploadingFiles[files[i].name] = jqXHR; uploadingFiles[files[i].name] = jqXHR;
} }
}
}else{ }else{
data.submit().success(function(data, status) { data.submit().success(function(data, status) {
response = jQuery.parseJSON(data[0].body.innerText); response = jQuery.parseJSON(data[0].body.innerText);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment