Check for callback in OC.dialogs.alert.
This commit is contained in:
parent
07ff1e723a
commit
a4a3d62a55
|
@ -153,7 +153,7 @@ OCdialogs = {
|
||||||
var f;
|
var f;
|
||||||
switch(dialog_type) {
|
switch(dialog_type) {
|
||||||
case OCdialogs.ALERT_DIALOG:
|
case OCdialogs.ALERT_DIALOG:
|
||||||
f = function(){$(c_id).dialog('close'); callback();};
|
f = function(){$(c_id).dialog('close'); if(callback) callback();};
|
||||||
break;
|
break;
|
||||||
case OCdialogs.PROMPT_DIALOG:
|
case OCdialogs.PROMPT_DIALOG:
|
||||||
f = function(){OCdialogs.prompt_ok_handler(callback, c_id)};
|
f = function(){OCdialogs.prompt_ok_handler(callback, c_id)};
|
||||||
|
|
Loading…
Reference in New Issue