-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to PaintsChainer commit 357a810
- Loading branch information
Showing
2 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,35 @@ | ||
diff --git a/paints_chainer.js b/paints_chainer.js | ||
index 3157619..c0196b5 100644 | ||
index 62f04d4..f5489b2 100644 | ||
--- a/paints_chainer.js | ||
+++ b/paints_chainer.js | ||
@@ -131,10 +131,6 @@ $(function () { | ||
@@ -75,7 +75,7 @@ $(function () { | ||
} | ||
|
||
function post(data) { | ||
- | ||
+ | ||
$.ajax({ | ||
type: 'POST', | ||
url: origin + '/post', | ||
@@ -107,8 +107,8 @@ $(function () { | ||
|
||
function paint(id) { | ||
var ajaxData = new FormData(); | ||
- ajaxData.append('id', image_id) | ||
- | ||
+ ajaxData.append('id', image_id) | ||
+ | ||
$.ajax({ | ||
type: 'POST', | ||
url: origin + '/paint', | ||
@@ -164,10 +164,6 @@ $(function () { | ||
} | ||
blobUrlToBlob($('#background').attr('src'), function (line_blob) { | ||
ajaxData.append('line', line_blob); | ||
- if (line_blob.size > 1000000) { | ||
- alert('Image too large to colorize'); | ||
- return; | ||
- } | ||
paint(ajaxData); | ||
post(ajaxData); | ||
}); | ||
}); |