From 29af9dbbf4eab89497e5c5e2867f754b157f4988 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Fri, 14 Oct 2022 02:37:42 -0700 Subject: [PATCH] move fn --- files/assets/js/core.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);