Tââ
o complete the thought, here is what Iâm doing now with what I described
earlier:
diff --git a/mezzanine/pages/static/mezzanine/js/admin/page_tree.js
b/mezzanine/pages/static/mezzani---
a/mezzanine/pages/static/mezzanine/js/admin/page_tree.js+++
b/mezzanine/pages/static/mezzanine/js/admin/page_tree.js@@ -91,7
+91,10 @@
$.post(window.__page_ordering_url, args, function(data) {
if (String(data).substr(0, 2) !== "ok") {-
alert("Error occured: " + data + "\nOrdering wasn't updated.");+
location.reload();+ }+ else {+
$(".messagelist").remove();
}
});
This will result in the page tree being reverted if the page move is
aborted. Also, a django-messages error message is shown (done elsewhere
right now, but ideally should be done in the admin_page_ordering view. Upon
a successful page move, the message is reset.
â
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.