Skip to content
Snippets Groups Projects
Commit 86f3261c authored by anttil's avatar anttil
Browse files

Make cancel work on connection dialog

parent ffa77a49
No related branches found
No related tags found
No related merge requests found
...@@ -226,11 +226,17 @@ define( ...@@ -226,11 +226,17 @@ define(
state.connection.name = state.connection.candidateName state.connection.name = state.connection.candidateName
} }
function onCancel() {
state.connection.candidateName = state.connection.name
}
dialog.modal({ dialog.modal({
body: uploadDialogBox, body: uploadDialogBox,
title: 'Choose openBIS connection', title: 'Choose openBIS connection',
buttons: { buttons: {
'Cancel': {}, 'Cancel': {
click: onCancel
},
'Choose connection': { 'Choose connection': {
class: 'btn-primary btn-large', class: 'btn-primary btn-large',
click: onOk click: onOk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment