Tweak javascript for category detail pages

This commit is contained in:
Oliver committed 2018-04-28 11:43:26 +10:00
1 parent bc597d7c21
commit 2e7253ebc4
5 files changed
+58 -24

No files matched your search

+4
View File
@@ -54,6 +54,10 @@ function launchDeleteForm(modal, url, options = {}) {
if (options.success) {
options.success();
}
// Follow the URL returned by the JSON response
else if (options.follow && response.url) {
window.location.href = response.url;
}
else if (options.redirect) {
window.location.href = options.redirect;
}