adding callback when ok click on alert dialog
This commit is contained in:
parent
2f68b08491
commit
4e327295c6
|
@ -115,7 +115,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'); };
|
f = function(){$(c_id).dialog('close'); 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