put a default button to a in-progress dialog

This commit is contained in:
hyung-hwan 2016-01-17 07:21:48 +00:00
parent de4bf6a5bf
commit 16d4213c53
2 changed files with 11 additions and 0 deletions

View File

@ -277,6 +277,12 @@ function show_in_progress_message (outputMsg, titleMsg)
width: 'auto',
height: 'auto',
buttons: {
"OK": function () {
// do nothing
}
},
beforeClose: function() {
// if importing is in progress, prevent dialog closing
return !work_in_progress;

View File

@ -226,6 +226,11 @@ function show_in_progress_message (outputMsg, titleMsg)
width: 'auto',
height: 'auto',
buttons: {
"OK": function () {
// do nothing
}
},
beforeClose: function() {
// if importing is in progress, prevent dialog closing
return !work_in_progress;