Check for callback in OC.dialogs.alert.
This commit is contained in:
parent
07ff1e723a
commit
a4a3d62a55
|
@ -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)};
|
||||
|
|
Loading…
Reference in New Issue