mirror of
https://github.com/pldubouilh/gossa.git
synced 2026-09-03 15:47:45 -04:00
pic mode onclick pictures
This commit is contained in:
@@ -307,8 +307,8 @@ function setImage (src) {
|
|||||||
storeLastArrowSrc(src)
|
storeLastArrowSrc(src)
|
||||||
}
|
}
|
||||||
|
|
||||||
function picsOn (ifImgSelected) {
|
function picsOn (ifImgSelected, href) {
|
||||||
const href = getASelected().href
|
href = href || getASelected().href
|
||||||
|
|
||||||
if (isPicMode()) {
|
if (isPicMode()) {
|
||||||
return false
|
return false
|
||||||
@@ -412,10 +412,14 @@ document.body.addEventListener('keydown', e => {
|
|||||||
}, false)
|
}, false)
|
||||||
|
|
||||||
window.onClickLink = e => {
|
window.onClickLink = e => {
|
||||||
if (!e.target.innerText.endsWith('/')) { return true }
|
if (e.target.innerText.endsWith('/')) {
|
||||||
storeLastArrowSrc(e.target.href)
|
storeLastArrowSrc(e.target.href)
|
||||||
browseTo(e.target.href)
|
browseTo(e.target.href)
|
||||||
return false
|
return false
|
||||||
|
} else if (picsOn(true, e.target.href)) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
function init () {
|
function init () {
|
||||||
|
|||||||
Reference in New Issue
Block a user