diff --git a/LICENSE b/LICENSE index 93b2acd4f..df188a291 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* appchan x - Version 2.8.13 - 2014-03-06 +* appchan x - Version 2.8.13 - 2014-03-07 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index b0a0dc1c5..009a77576 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -24,7 +24,7 @@ // ==/UserScript== /* -* appchan x - Version 2.8.13 - 2014-03-06 +* appchan x - Version 2.8.13 - 2014-03-07 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -11972,7 +11972,7 @@ return new Notice('info', "The thread is " + change + ".", 30); }, parse: function(postObjects) { - var OP, count, deletedFiles, deletedPosts, files, index, node, num, post, postObject, posts, root, scroll, sendEvent, _i, _j, _len, _len1; + var OP, count, deletedFiles, deletedPosts, files, index, node, num, post, postObject, posts, root, sendEvent, _i, _j, _len, _len1; OP = postObjects[0]; Build.spoilerRange[ThreadUpdater.thread.board] = OP.custom_spoiler; ThreadUpdater.updateThreadStatus('Sticky', !!OP.sticky); @@ -12044,7 +12044,6 @@ } ThreadUpdater.lastPost = posts[count - 1].ID; Main.callbackNodes(Post, posts); - scroll = Conf['Auto Scroll'] && ThreadUpdater.scrollBG() && Header.getBottomOf(ThreadUpdater.root) > -25; for (_j = 0, _len1 = posts.length; _j < _len1; _j++) { post = posts[_j]; root = post.nodes.root; @@ -12057,11 +12056,11 @@ } } sendEvent(); - if (scroll) { + if (Conf['Auto Scroll'] && ThreadUpdater.scrollBG() && Header.getBottomOf(ThreadUpdater.root) > -25) { if (Conf['Bottom Scroll']) { return window.scrollTo(0, d.body.clientHeight); } else { - return Header.scrollTo(nodes[0]); + return Header.scrollTo(posts.nodes[0]); } } } diff --git a/builds/crx/script.js b/builds/crx/script.js index 44657911e..be923a260 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* appchan x - Version 2.8.13 - 2014-03-06 +* appchan x - Version 2.8.13 - 2014-03-07 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -11987,7 +11987,7 @@ return new Notice('info', "The thread is " + change + ".", 30); }, parse: function(postObjects) { - var OP, count, deletedFiles, deletedPosts, files, index, node, num, post, postObject, posts, root, scroll, sendEvent, _i, _j, _len, _len1; + var OP, count, deletedFiles, deletedPosts, files, index, node, num, post, postObject, posts, root, sendEvent, _i, _j, _len, _len1; OP = postObjects[0]; Build.spoilerRange[ThreadUpdater.thread.board] = OP.custom_spoiler; ThreadUpdater.updateThreadStatus('Sticky', !!OP.sticky); @@ -12059,7 +12059,6 @@ } ThreadUpdater.lastPost = posts[count - 1].ID; Main.callbackNodes(Post, posts); - scroll = Conf['Auto Scroll'] && ThreadUpdater.scrollBG() && Header.getBottomOf(ThreadUpdater.root) > -25; for (_j = 0, _len1 = posts.length; _j < _len1; _j++) { post = posts[_j]; root = post.nodes.root; @@ -12072,11 +12071,11 @@ } } sendEvent(); - if (scroll) { + if (Conf['Auto Scroll'] && ThreadUpdater.scrollBG() && Header.getBottomOf(ThreadUpdater.root) > -25) { if (Conf['Bottom Scroll']) { return window.scrollTo(0, d.body.clientHeight); } else { - return Header.scrollTo(nodes[0]); + return Header.scrollTo(posts.nodes[0]); } } } diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index 5a1aaa609..67e9ecbcf 100755 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -335,8 +335,6 @@ ThreadUpdater = ThreadUpdater.lastPost = posts[count - 1].ID Main.callbackNodes Post, posts - scroll = Conf['Auto Scroll'] and ThreadUpdater.scrollBG() and Header.getBottomOf(ThreadUpdater.root) > -25 - for post in posts {root} = post.nodes if post.cb @@ -346,8 +344,8 @@ ThreadUpdater = $.add ThreadUpdater.root, root sendEvent() - if scroll + if Conf['Auto Scroll'] and ThreadUpdater.scrollBG() and Header.getBottomOf(ThreadUpdater.root) > -25 if Conf['Bottom Scroll'] window.scrollTo 0, d.body.clientHeight else - Header.scrollTo nodes[0] + Header.scrollTo posts.nodes[0]