diff options
author | anekos | 2011-09-13 01:12:45 +0900 |
---|---|---|
committer | anekos | 2011-09-13 01:24:11 +0900 |
commit | 58ce91467bcd0087f5339e6f74d5c105fb8ee9d9 (patch) | |
tree | 7c2b6856c064d8d9f16a02fa8a8cfbb63d1699a4 | |
parent | b6ee3e5cb9a34a99e387b0c47f8a76320c38b292 (diff) | |
download | vimperator-plugins-58ce91467bcd0087f5339e6f74d5c105fb8ee9d9.tar.bz2 |
libly.Wedata のコンストラクタでURIエンコードしたものを渡さなくてもいいようにした
-rw-r--r-- | _libly.js | 6 | ||||
-rw-r--r-- | copy.js | 2 | ||||
-rw-r--r-- | multi_requester.js | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -14,7 +14,7 @@ var PLUGIN_INFO = <author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author> <author mail="anekos@snca.net" homepage="http://snca.net/">anekos</author> <license>MIT</license> - <version>0.1.36</version> + <version>0.1.37</version> <minVersion>2.3pre</minVersion> <updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/_libly.js</updateURL> <detail><![CDATA[ @@ -690,7 +690,7 @@ libly.Wedata.prototype = { getItems: function(expire, itemCallback, finalCallback) { var logger = this.logger; - var STORE_KEY = 'plugins-libly-wedata-' + this.dbname + '-items'; + var STORE_KEY = 'plugins-libly-wedata-' + encodeURIComponent(this.dbname) + '-items'; var store = storage.newMap(STORE_KEY, {store: true}); var cache = store && store.get('data'); @@ -717,7 +717,7 @@ libly.Wedata.prototype = { } } - var req = new libly.Request(this.HOST_NAME + 'databases/' + this.dbname + '/items.json'); + var req = new libly.Request(this.HOST_NAME + 'databases/' + encodeURIComponent(this.dbname) + '/items.json'); req.addEventListener('success', libly.$U.bind(this, function(res) { var text = res.responseText; if (!text) { @@ -390,7 +390,7 @@ if (liberator.globalVariables.copy_use_wedata){ copy_templates.forEach(function(item) excludeLabelsMap[item.label] = item.value); if (liberator.globalVariables.copy_wedata_exclude_labels) liberator.globalVariables.copy_wedata_exclude_labels.forEach(function(item) excludeLabelsMap[item] = 1); - var wedata = new libly.Wedata("vimp%20copy"); + var wedata = new libly.Wedata("vimp copy"); wedata.getItems(24 * 60 * 60 * 1000, wedataRegister); } loadWedata(); diff --git a/multi_requester.js b/multi_requester.js index 1165edf..f075779 100644 --- a/multi_requester.js +++ b/multi_requester.js @@ -242,7 +242,7 @@ var DataAccess = { if (useWedata) { logger.log("use wedata"); - var wedata = new libly.Wedata("Multi%20Requester"); + var wedata = new libly.Wedata("Multi Requester"); wedata.getItems(24 * 60 * 60 * 1000, function(item) { var site = item.data; |