diff options
| author | Alex Kovar | 2010-09-27 10:20:52 -0500 |
|---|---|---|
| committer | Alex Kovar | 2010-09-27 10:20:52 -0500 |
| commit | 4d5039abc7e9ded987a48583415f2cbf29931ada (patch) | |
| tree | e5bfb70580a6c3b6c446738751f085c0118b324a | |
| parent | 41d7be473851a0caf43cddb228df225069d051bc (diff) | |
| download | vimium-4d5039abc7e9ded987a48583415f2cbf29931ada.tar.bz2 | |
disable bookmark find mode after successful hit
| -rw-r--r-- | bookmarks.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bookmarks.js b/bookmarks.js index fef4ed53..476e28ac 100644 --- a/bookmarks.js +++ b/bookmarks.js @@ -84,9 +84,14 @@ function activateBookmarkFindMode() { var bookmarksFound = BookmarkMode.bookmarksFound; if(bookmarksFound && bookmarksFound.length>0) { var url = bookmarksFound[0].url - if(BookmarkMode.newTab) + if(BookmarkMode.newTab) { + BookmarkMode.disable(); window.open(url) - else window.location=url + } + else { + BookmarkMode.disable(); + window.location=url + } } } |
