Add database ID to the file object

merge-requests/3/head
Mike Koch 8 years ago
parent b133a3e31e
commit 87f6093138

@ -219,6 +219,9 @@ function display_dropzone_field($url) {
this.on('success', function(file, response) { this.on('success', function(file, response) {
// The response will only be the ID of the attachment in the database // The response will only be the ID of the attachment in the database
outputAttachmentIdHolder(response); outputAttachmentIdHolder(response);
// Add the database id to the file
file['databaseId'] = response;
}); });
this.on('removedfile', function(file) { this.on('removedfile', function(file) {
console.log(file); console.log(file);

Loading…
Cancel
Save