diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2016-09-25 16:34:47 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2016-09-25 16:34:47 +0900 |
| commit | a3b9c4405c6d4cca2a70dbb400e3ba3f65e7ea04 (patch) | |
| tree | 5a2ebdb801748586e3fde7c12cbeda169b2c3e31 /js/inline.js | |
| parent | 9436524a306c8e3d6d8a6ed195e2a3c56d5cde39 (diff) | |
| parent | a4b619ae5eaab5755dc215a496854dee8f7ce395 (diff) | |
Merged lainchan with vichan master at 25/9/2016 a4b619ae5eaab5755dc215a496854dee8f7ce395 @czaks czaks committed on GitHub 2 days ago
Diffstat (limited to 'js/inline.js')
| -rw-r--r-- | js/inline.js | 8 |
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) |
