forked from rDrama/rDrama
fix "give award" button not getting grayed-out correctly
parent
a66add3897
commit
5be668a049
|
@ -130,7 +130,7 @@ function buy(mb) {
|
||||||
const xhr = createXhrWithFormKey(url);
|
const xhr = createXhrWithFormKey(url);
|
||||||
if(typeof data === 'object' && data !== null) {
|
if(typeof data === 'object' && data !== null) {
|
||||||
for(let k of Object.keys(data)) {
|
for(let k of Object.keys(data)) {
|
||||||
form.append(k, data[k]);
|
form.append(k, data[k]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xhr[0].onload = function() {
|
xhr[0].onload = function() {
|
||||||
|
|
|
@ -33,7 +33,7 @@ function createXhrWithFormKey(url, method="POST", form=new FormData()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function postToast(t, url, data, extraActionsOnSuccess, method="POST") {
|
function postToast(t, url, data, extraActionsOnSuccess, method="POST") {
|
||||||
const isShopConfirm = t.id.startsWith('buy1-') || t.id.startsWith('buy2-')
|
const isShopConfirm = t.id.startsWith('buy1-') || t.id.startsWith('buy2-') || t.id.startsWith('giveaward')
|
||||||
|
|
||||||
if (!isShopConfirm)
|
if (!isShopConfirm)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue