adding callback when ok click on alert dialog

remotes/origin/stable4
Bartek Przybylski 13 years ago
parent 2f68b08491
commit 4e327295c6
  1. 2
      core/js/oc-dialogs.js

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

Loading…
Cancel
Save