diff options
author | suVene | 2008-12-13 22:58:26 +0000 |
---|---|---|
committer | suVene | 2008-12-13 22:58:26 +0000 |
commit | 04713ed6c8aac7875b92f1316595139185f5dd4d (patch) | |
tree | 7a32334997698bbc8a6db946b6db98eb9c056b97 /nextlink.js | |
parent | d08919ffe53fd5b8c8c949e9e30f47bedea3317e (diff) | |
download | vimperator-plugins-04713ed6c8aac7875b92f1316595139185f5dd4d.tar.bz2 |
bugfix.next element を snapshot から取り出すのを忘れてた
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26656 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'nextlink.js')
-rw-r--r-- | nextlink.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nextlink.js b/nextlink.js index 79991d0..898c645 100644 --- a/nextlink.js +++ b/nextlink.js @@ -5,7 +5,7 @@ var PLUGIN_INFO = <description>mapping "[[", "]]" by AutoPagerize XPath.</description>
<description lang="ja">AutoPagerize 用の XPath より "[[", "]]" をマッピングします。</description>
<author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author>
- <version>0.2.2</version>
+ <version>0.2.3</version>
<minVersion>1.2</minVersion>
<maxVersion>2.0pre</maxVersion>
<detail><![CDATA[
@@ -39,7 +39,6 @@ liberator.plugins.nextlink = (function() { var isFollowLink = typeof liberator.globalVariables.nextlink_followlink == 'undefined' ?
false : $U.eval(liberator.globalVariables.nextlink_followlink);
-
var pageNaviCss =
<style type="text/css"><![CDATA[
.vimperator-nextlink-page {
@@ -298,7 +297,7 @@ liberator.plugins.nextlink = (function() { cache.curPage++;
if (next && next.length) {
cache.prev.push(prev);
- cache.next.push(next);
+ cache.next.push(next[0]);
} else {
context.setCache(url, 'terminate', cache.curPage);
}
@@ -359,7 +358,7 @@ liberator.plugins.nextlink = (function() { var url = res.req.options.url;
var cache = context.cache[url];
cache.isLoading = false;
- logger.echoerr('nextlink: loading failed. ' + '[' + res.status + ']' + res.statusText);
+ logger.echoerr('nextlink: loading failed. ' + '[' + res.status + ']' + res.statusText + ' > ' + res.req.url);
res.req.options.context.setCache(res.req.options.url, 'terminate', cache.curPage);
},
focusPagenavi: function(context, url, page) {
|