diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index f6870e6271..4240b75c6f 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -153,7 +153,7 @@ OCdialogs = { var f; switch(dialog_type) { case OCdialogs.ALERT_DIALOG: - f = function(){$(c_id).dialog('close'); callback();}; + f = function(){$(c_id).dialog('close'); if(callback) callback();}; break; case OCdialogs.PROMPT_DIALOG: f = function(){OCdialogs.prompt_ok_handler(callback, c_id)};