diff --git a/src/background/scripts/modules/tab.js b/src/background/scripts/modules/tab.js index f4faeda8..2c73219e 100644 --- a/src/background/scripts/modules/tab.js +++ b/src/background/scripts/modules/tab.js @@ -24,8 +24,8 @@ var Tab = (function() { Post(tab, { action: "Dialog.draw", urls: return_urls, keyword: keyword }); } else { chrome.bookmarks.search(keyword, function(bookmarks) { - // Search start from 20 days ago - chrome.history.search({text: keyword, maxResults: 30, startTime: (new Date().getTime() - 1000 * 60 * 60 * 24 * 20)}, function(historys) { + // Search start from 10 days ago + chrome.history.search({text: keyword, maxResults: 30, startTime: (new Date().getTime() - 1000 * 60 * 60 * 24 * 10)}, function(historys) { Post(tab, { action: "Dialog.draw", urls: return_urls.concat(bookmarks.concat(historys)), keyword: keyword }); }); }); diff --git a/src/frontend/modules/dialog.js b/src/frontend/modules/dialog.js index 22b18fe0..3013311d 100644 --- a/src/frontend/modules/dialog.js +++ b/src/frontend/modules/dialog.js @@ -189,8 +189,8 @@ var Dialog = (function() { openCurrent(); } if (key == '') prev(); - if (key == '') prev(10); if (key == '') next(); + if (key == '') prev(10); if (key == '') next(10); KeyEvent.stopPropagation(e); @@ -220,11 +220,15 @@ var Dialog = (function() { if (!keep_open) { stop(); } } + function open(/*Boolean*/ keep_open) { + setTimeout(openCurrent, 500, keep_open); + } + return { start : start, draw : draw, - openCurrent : openCurrent , - openCurrentNewTab : function() { openCurrent(true) }, + openCurrent : open, + openCurrentNewTab : function() { open(true) }, stop : stop }; })();