Check for callback in OC.dialogs.alert.

This commit is contained in:
Thomas Tanghus 2012-05-03 16:30:24 +02:00
parent 07ff1e723a
commit a4a3d62a55
1 changed files with 1 additions and 1 deletions

View File

@ -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)};