master
justcool393 2022-10-14 02:37:42 -07:00
parent 7620d8d8cd
commit 29af9dbbf4
1 changed files with 5 additions and 5 deletions

View File

@ -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) { function postToast(t, url, button1, button2, className, extraActions, extraActionsError) {
prePostToastNonShopActions(t, url, button1, button2, className) prePostToastNonShopActions(t, url, button1, button2, className)
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
@ -82,6 +77,11 @@ function postToast(t, url, button1, button2, className, extraActions, extraActio
xhr.send(form); 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) { function post_toast_callback(url, data, callback) {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.open("POST", url); xhr.open("POST", url);