mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-08 00:23:01 +08:00
c28f86d46d
Refactor inline events in task results [SCI-8434]
15 lines
396 B
JavaScript
15 lines
396 B
JavaScript
/* global DragNDropResults */
|
|
|
|
(function() {
|
|
$('.new-result-assets-buttons')
|
|
.on('click', '.save-result', (event) => {
|
|
DragNDropResults.processResult(event);
|
|
})
|
|
.on('click', '.cancel-new', () => {
|
|
DragNDropResults.destroyAll();
|
|
});
|
|
|
|
$('#new-result-assets-select').on('change', '#drag-n-drop-assets', function() {
|
|
DragNDropResults.init(this.files);
|
|
});
|
|
}());
|