|
|
|
@ -616,6 +616,11 @@ $('.close').click((e) => { |
|
|
|
|
|
|
|
$('#treasure-popup-button').click((e) => { |
|
|
|
var fr = new FileReader(); |
|
|
|
let f = $('#treasure-popup-image').prop('files')[0]; |
|
|
|
if(f.size > 10**7) { |
|
|
|
alert('Le fichier est beaucoup trop gros !'); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
var indata = { |
|
|
|
uid: localStorage.getItem('user'), |
|
|
|
@ -648,7 +653,9 @@ $('#treasure-popup-button').click((e) => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
fr.readAsDataURL($('#treasure-popup-image').prop('files')[0]); |
|
|
|
|
|
|
|
|
|
|
|
fr.readAsDataURL(f); |
|
|
|
}); |
|
|
|
|
|
|
|
$('#demande-button').click(function () { |
|
|
|
|