dont fail if button does not exist
This commit is contained in:
parent
6d3d0bbc43
commit
d7c69535a3
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ oml.ui.importExportDialog = function(selected) {
|
|||
}
|
||||
|
||||
function setButton(data) {
|
||||
$progressButton[data.activity].options({
|
||||
$progressButton[data.activity] && $progressButton[data.activity].options({
|
||||
title: !data.status ? Ox._(
|
||||
data.activity == 'import' ? 'Cancel Import' : 'Cancel Export'
|
||||
) : Ox._('Done')
|
||||
|
|
Loading…
Reference in a new issue