Remove condition for non-nested case

We don't use these input fields inside a non-nested context since commit
2993ef870.
This commit is contained in:
Javi Martín
2021-07-12 04:14:19 +02:00
parent a7e2f1ae30
commit 367d3f9d14
4 changed files with 4 additions and 20 deletions

View File

@@ -76,7 +76,6 @@
buildData: function(data, input) {
var wrapper;
wrapper = $(input).closest(".direct-upload");
data.input = input;
data.wrapper = wrapper;
data.progressBar = $(wrapper).find(".progress-bar-placeholder");
data.errorContainer = $(wrapper).find(".attachment-errors");
@@ -133,11 +132,7 @@
},
complete: function() {
App.Documentable.unlockUploads();
if ($(data.input).data("nested-document") === true) {
$(data.wrapper).remove();
} else {
$(data.wrapper).find("a.remove-cached-attachment").remove();
}
$(data.wrapper).remove();
}
});
},