ca
This commit is contained in:
parent
2d15d097bd
commit
f2c2bbaae9
1 changed files with 11 additions and 1 deletions
|
@ -670,6 +670,16 @@ $('#treasure-popup-button').click((e) => {
|
|||
});
|
||||
|
||||
$('#demande-button').click(function () {
|
||||
amount = $('#demande-amount').val();
|
||||
if (amount > 9) {
|
||||
t = new TypeIt('#error-message-demande', {
|
||||
speed: 100,
|
||||
lifeLike: true
|
||||
})
|
||||
.type("Trop de crêpes, maximum c'est 9")
|
||||
.go();
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: base_url + "addPrank",
|
||||
|
@ -677,7 +687,7 @@ $('#demande-button').click(function () {
|
|||
uid: localStorage.getItem('user'),
|
||||
token: localStorage.getItem('token'),
|
||||
type: "crêpe",
|
||||
amount: $('#demande-amount').val(),
|
||||
amount: amount,
|
||||
where: $('#demande-where').val(),
|
||||
supplement: $('#demande-supp').val(),
|
||||
note: $('#demande-notes').val(),
|
||||
|
|
Loading…
Reference in a new issue