diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 2003e68bd..4f2685a2e 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -62,11 +62,6 @@ function postPostToastNonShopActions(t, url, button1, button2, className) { } } -/* temporary compatability function. js styling wants us to use thisCase so any new things should use that */ -function post_toast(t, url, button1, button2, classname, extra_actions, extra_actions_error) { - postToast(t, url, button1, button2, classname, extra_actions, extra_actions_error); -} - function postToast(t, url, button1, button2, className, extraActions, extraActionsError) { prePostToastNonShopActions(t, url, button1, button2, className) const xhr = new XMLHttpRequest(); @@ -82,6 +77,11 @@ function postToast(t, url, button1, button2, className, extraActions, extraActio xhr.send(form); } +/* temporary compatability function. js styling wants us to use thisCase so any new things should use that */ +function post_toast(t, url, button1, button2, classname, extra_actions, extra_actions_error) { + postToast(t, url, button1, button2, classname, extra_actions, extra_actions_error); +} + function post_toast_callback(url, data, callback) { const xhr = new XMLHttpRequest(); xhr.open("POST", url);