projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
387d0f5
)
CRM-15149 - Close popup after deleting an object (don't try to view it)
author
Coleman Watts
<coleman@civicrm.org>
Tue, 26 Aug 2014 15:15:24 +0000
(16:15 +0100)
committer
Coleman Watts
<coleman@civicrm.org>
Tue, 26 Aug 2014 15:15:24 +0000
(16:15 +0100)
js/crm.ajax.js
patch
|
blob
|
blame
|
history
diff --git
a/js/crm.ajax.js
b/js/crm.ajax.js
index 961c18621506da6623b3bb52c5852028b5e9e309..2e3c1f81b9f51d872b7d6098dc10afcbd58b880e 100644
(file)
--- a/
js/crm.ajax.js
+++ b/
js/crm.ajax.js
@@
-412,7
+412,8
@@
$el.data('civiCrmSnippet')._originalUrl = response.userContext;
$el.crmSnippet('resetUrl').crmSnippet('refresh');
}
- else if ($el.data('uiDialog') && settings.autoClose) {
+ // Close if we are on the original url or the action was "delete" (in which case returning to view may be inappropriate)
+ else if ($el.data('uiDialog') && (settings.autoClose || response.action === 8)) {
$el.dialog('close');
}
else if (settings.autoClose === false) {