diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-05-03 16:30:24 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-05-04 00:13:35 +0200 |
commit | a4a3d62a55f99d99c97dd50a4060015df8f69933 (patch) | |
tree | cf0f4148871f26dc9f806518e56a46eff393a6b5 /core/js/oc-dialogs.js | |
parent | 07ff1e723ae4fa3a0297b168ef2262e01a0a5e50 (diff) | |
download | nextcloud-server-a4a3d62a55f99d99c97dd50a4060015df8f69933.tar.gz nextcloud-server-a4a3d62a55f99d99c97dd50a4060015df8f69933.zip |
Check for callback in OC.dialogs.alert.
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r-- | core/js/oc-dialogs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index f6870e62710..4240b75c6f8 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -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)}; |