mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 17:31:00 +01:00
User can disable backlinks if they want to, off by default
This commit is contained in:
parent
db55a3040f
commit
5295c6366f
10
js/inline.js
10
js/inline.js
@ -124,6 +124,7 @@ onready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
App.options.add('hidePost', 'Hide inlined backlinked posts')
|
App.options.add('hidePost', 'Hide inlined backlinked posts')
|
||||||
|
App.options.add('useBacklinks', 'Enable backlinks')
|
||||||
|
|
||||||
$('head').append(
|
$('head').append(
|
||||||
'<style>' +
|
'<style>' +
|
||||||
@ -135,7 +136,10 @@ onready(function() {
|
|||||||
'</style>')
|
'</style>')
|
||||||
|
|
||||||
// don't attach to outbound links
|
// don't attach to outbound links
|
||||||
$('.body a:not([rel]), .mentioned a')
|
|
||||||
.attr('onclick', null)// XXX disable highlightReply
|
if (App.options.get('useBacklinks')) {
|
||||||
.click(inline)
|
$('.body a:not([rel]), .mentioned a')
|
||||||
|
.attr('onclick', null)// XXX disable highlightReply
|
||||||
|
.click(inline)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user