forked from MarseyWorld/MarseyWorld
move fn
parent
7620d8d8cd
commit
29af9dbbf4
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue