Skip to content

Commit

Permalink
close dialog after getSelections (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway authored Aug 18, 2020
1 parent 544c0b3 commit dfe7c48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion imjoy_elfinder/VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.1.57"
"version": "0.1.58"
}
6 changes: 3 additions & 3 deletions imjoy_elfinder/templates/elfinder/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
ok_button.on('click', () => {
const selected = fm.selectedFiles()
resolve(selected);
api.hide()
api.close()
})
ok_button.hide()
fm.select(() => {
Expand All @@ -265,7 +265,7 @@
const cancel_button = $('<button style="margin-left: 5px;" class="dialog-btn ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only elfinder-btncnt-2 elfinder-tabstop">Cancel</button>')
cancel_button.on('click', () => {
resolve([])
api.hide()
api.close()
})
button_set.append(ok_button).append(cancel_button)
button_set.insertAfter(fm.getUI('statusbar').children('.elfinder-stat-size'));
Expand All @@ -274,7 +274,7 @@

api.on("close", () => {
resolve([])
api.hide()
api.close()
})
})
}
Expand Down

0 comments on commit dfe7c48

Please # to comment.