Browse Source

feat: update the js

tags/vopendata0.1.2
colorfulberry 5 years ago
parent
commit
031cc3d12c
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      web_src/js/index.js

+ 5
- 2
web_src/js/index.js View File

@@ -2409,8 +2409,11 @@ $(document).ready(async () => {
timeout: 18000000,
previewTemplate,
init() {
this.on('sending', (_file, _xhr, formData) => {
formData.append('dataset_id', $dataset.data('dataset-id'));
this.on('sending', (file, xhr, _formData) => {
const send = xhr.send;
xhr.send = function () {
send.call(xhr, file);
};
});
this.on('success', (file, _data) => {
const uuid = $dataset.data('uuid');


Loading…
Cancel
Save