summaryrefslogtreecommitdiff
path: root/js/inline.js
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2016-12-15 18:25:42 +0900
committerGitHub <noreply@github.com>2016-12-15 18:25:42 +0900
commitcae526e65a20f3da2d8884c4d8e8978c54120000 (patch)
tree2954153dd49f616f5018490058ff4bfbd17300d3 /js/inline.js
parentb58fab98147a92c8e6d22f15d23684508b6bb811 (diff)
parent5feae402cb55d49963bfd2c6f5a33d10690ecbc1 (diff)
Merge pull request #79 from lainchan/clean_prod_vichan_update
Merge vichan changes from upstream and changes directly applied to the site.
Diffstat (limited to 'js/inline.js')
-rw-r--r--js/inline.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/inline.js b/js/inline.js
index 4f8c9a72..e581b79d 100644
--- a/js/inline.js
+++ b/js/inline.js
@@ -123,8 +123,8 @@ $(document).ready(function() {
$clone.insertAfter(link.node)
}
- App.options.add('useInlining', 'Enable inlining')
- App.options.add('hidePost', 'Hide inlined backlinked posts')
+ App.options.add('useInlining', _('Enable inlining'))
+ App.options.add('hidePost', _('Hide inlined backlinked posts'))
$('head').append(
'<style>' +
@@ -138,8 +138,8 @@ $(document).ready(function() {
// don't attach to outbound links
if (App.options.get('useInlining')) {
- var assign_inline = function() {
- $('.body a:not([rel]), .mentioned a')
+ var assign_inline = function() {
+ $('.body a[href*="'+location.pathname+'"]').not('[rel]').not('.toolong > a').add('.mentioned a')
.attr('onclick', null)// XXX disable highlightReply
.off('click')
.click(inline)