adding callback when ok click on alert dialog

This commit is contained in:
Bartek Przybylski 2012-04-01 00:30:52 +02:00
parent 2f68b08491
commit 4e327295c6
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ OCdialogs = {
var f;
switch(dialog_type) {
case OCdialogs.ALERT_DIALOG:
f = function(){$(c_id).dialog('close'); };
f = function(){$(c_id).dialog('close'); callback();};
break;
case OCdialogs.PROMPT_DIALOG:
f = function(){OCdialogs.prompt_ok_handler(callback, c_id)};