From d7c69535a3f993f09f32996c8b2207a09aa08e93 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 8 Mar 2015 01:47:16 +0530 Subject: [PATCH] dont fail if button does not exist --- static/js/importExportDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/importExportDialog.js b/static/js/importExportDialog.js index d68336a..9246b57 100644 --- a/static/js/importExportDialog.js +++ b/static/js/importExportDialog.js @@ -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')