diff options
author | z411 | 2019-04-01 04:28:52 -0300 |
---|---|---|
committer | z411 | 2019-04-01 04:29:56 -0300 |
commit | ff6bf1b045fa810989a3efc78624123d3fc97f19 (patch) | |
tree | 13f949851ef0bc1d85b1fa5370c484002d5bdfdb /static/js/wpaint/bai.js | |
parent | 85790a8a070a9bb4e024beef4fd49c842c7e07d8 (diff) | |
download | weabot-ff6bf1b045fa810989a3efc78624123d3fc97f19.tar.gz weabot-ff6bf1b045fa810989a3efc78624123d3fc97f19.tar.xz weabot-ff6bf1b045fa810989a3efc78624123d3fc97f19.zip |
Reimplementado oekaki en Python y otros cambios
- Portados algoritmos de guardado de imagen a Python e incorporados en weabot
- Ahora los dibujos temporales se guardan en el directorio del board (adiĆ³s oek_temp)
- (Temporal) Los dibujos no se borran si no que se guardan como .bak
- Arreglado bug donde se pierde el dibujo si hubo cualquier problema al subir
Diffstat (limited to 'static/js/wpaint/bai.js')
-rw-r--r-- | static/js/wpaint/bai.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/static/js/wpaint/bai.js b/static/js/wpaint/bai.js index 6b436c1..ef93e02 100644 --- a/static/js/wpaint/bai.js +++ b/static/js/wpaint/bai.js @@ -1,10 +1,11 @@ function saveImg(image) { var _this = this; var url = document.getElementById('finish').href; + var save_url = document.getElementById('wPaint').dataset.save; $.ajax({ type: 'POST', - url: '/oek_temp/upload.php', + url: save_url, data: {image: image}, success: function (resp) { _this._displayStatus('Image saved successfully'); @@ -20,4 +21,4 @@ $('#wPaint').wPaint({ menuOffsetTop: -50, menuOrientation: 'horizontal', saveImg: saveImg -});
\ No newline at end of file +}); |