dont fail if button does not exist

This commit is contained in:
j 2015-03-08 01:47:16 +05:30
parent 6d3d0bbc43
commit d7c69535a3

View file

@ -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')