Skip to content

Commit

Permalink
0.7.0 Fix binds and opennewtab link
Browse files Browse the repository at this point in the history
  • Loading branch information
annndruha committed Mar 13, 2022
1 parent 0140d87 commit d58f1a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions js/links-func.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function isNumeric(value) {
}

function openLink(open_link, newtab='auto') {
open_link = getOpenLink(open_link)
if (varDefined(open_link)) {
if (newtab === 'auto')
{
Expand Down
11 changes: 8 additions & 3 deletions js/right-click-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@ function LinkRightClick(what_to_attach) {
e.stopPropagation()
hideAllRightClick()
let link = $(this).attr('link').toString()
$('#click-menu-bottom-menu').off('click').on('click', {param: 'link'}, function (e) {
$('#click-menu-bottom-menu').css({top: e.pageY + 'px', left: e.pageX + 'px'}).show(100)
$('.click-menu-row').off('click').on('click', {param1: 'link'}, function (e) {
e.stopPropagation()
hideAllRightClick()
openLink(link, true)
}).css({top: e.pageY + 'px', left: e.pageX + 'px'}).show(100)
switch ($(this).attr('data-action')) {
case 'new-tab':
openLink(link, true)
break
}
})
})
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Pulchra bookmarks",
"description": "Pulchra bookmarks extension",
"version": "0.6.5",
"version": "0.7.0",
"manifest_version": 3,
"minimum_chrome_version": "96",
"chrome_url_overrides": {
Expand Down

0 comments on commit d58f1a1

Please sign in to comment.