Tiny spoiler range fix.

This commit is contained in:
Nicolas Stepien 2012-09-11 16:30:37 +02:00
parent 4e76800037
commit 5f537f0405
2 changed files with 3 additions and 3 deletions

View File

@ -3534,7 +3534,7 @@
} }
posts = JSON.parse(req.response).posts; posts = JSON.parse(req.response).posts;
if (spoilerRange = posts[0].custom_spoiler) { if (spoilerRange = posts[0].custom_spoiler) {
Build.spoilerRange[g.BOARD] = spoilerRange; Build.spoilerRange[board] = spoilerRange;
} }
postID = +postID; postID = +postID;
for (_i = 0, _len = posts.length; _i < _len; _i++) { for (_i = 0, _len = posts.length; _i < _len; _i++) {

View File

@ -2763,9 +2763,9 @@ Get =
"Error #{req.status}: #{req.statusText}." "Error #{req.status}: #{req.statusText}."
return return
posts = JSON.parse(req.response).posts posts = JSON.parse(req.response).posts
if spoilerRange = posts[0].custom_spoiler if spoilerRange = posts[0].custom_spoiler
Build.spoilerRange[g.BOARD] = spoilerRange Build.spoilerRange[board] = spoilerRange
postID = +postID postID = +postID
for post in posts for post in posts
break if post.no is postID # we found it! break if post.no is postID # we found it!