diff options
Diffstat (limited to 'static/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 +}); |