From 0b1c67574adc0bab830d0929539ad87a813251f3 Mon Sep 17 00:00:00 2001 From: 7185 <7185@users.noreply.github.com> Date: Mon, 27 Oct 2014 19:13:30 +0100 Subject: Fix selector in inline.js Should make >>>/crossboard/links (and expanding links) work again --- js/inline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/inline.js') diff --git a/js/inline.js b/js/inline.js index 4f8c9a72..53865d90 100644 --- a/js/inline.js +++ b/js/inline.js @@ -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), .mentioned a') .attr('onclick', null)// XXX disable highlightReply .off('click') .click(inline) -- cgit v1.3 From cac428b30ccc2815264b15797e6397d6942b7adc Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Fri, 20 Mar 2015 16:09:21 +0800 Subject: Add some missing i18n tags --- js/comment-toolbar.js | 26 +++++++++++++------------- js/fix-report-delete-submit.js | 8 ++++---- js/inline.js | 4 ++-- js/post-filter.js | 40 ++++++++++++++++++++-------------------- js/thread-watcher.js | 12 ++++++------ 5 files changed, 45 insertions(+), 45 deletions(-) (limited to 'js/inline.js') diff --git a/js/comment-toolbar.js b/js/comment-toolbar.js index 65bdc529..51aa9808 100644 --- a/js/comment-toolbar.js +++ b/js/comment-toolbar.js @@ -13,7 +13,7 @@ if (active_page == 'thread' || active_page == 'index') { var self = {}; self.rules = { spoiler: { - text: 'Spoiler', + text: _('Spoiler'), key: 's', multiline: false, exclusiveline: false, @@ -21,7 +21,7 @@ if (active_page == 'thread' || active_page == 'index') { suffix:'**' }, italics: { - text: 'Italics', + text: _('Italics'), key: 'i', multiline: false, exclusiveline: false, @@ -29,7 +29,7 @@ if (active_page == 'thread' || active_page == 'index') { suffix: "''" }, bold: { - text: 'Bold', + text: _('Bold'), key: 'b', multiline: false, exclusiveline: false, @@ -37,7 +37,7 @@ if (active_page == 'thread' || active_page == 'index') { suffix: "'''" }, underline: { - text: 'Underline', + text: _('Underline'), key: 'u', multiline: false, exclusiveline: false, @@ -45,7 +45,7 @@ if (active_page == 'thread' || active_page == 'index') { suffix:'__' }, code: { - text: 'Code', + text: _('Code'), key: 'f', multiline: true, exclusiveline: false, @@ -53,7 +53,7 @@ if (active_page == 'thread' || active_page == 'index') { suffix: '[/code]' }, strike: { - text: 'Strike', + text: _('Strike'), key: 'd', multiline:false, exclusiveline:false, @@ -61,7 +61,7 @@ if (active_page == 'thread' || active_page == 'index') { suffix:'~~' }, heading: { - text: 'Heading', + text: _('Heading'), key: 'r', multiline:false, exclusiveline:true, @@ -271,7 +271,7 @@ if (active_page == 'thread' || active_page == 'index') { // add the tab for customizing the format settings if (window.Options && !Options.get_tab('formatting')) { - Options.add_tab('formatting', 'angle-right', 'Customize Formatting'); + Options.add_tab('formatting', 'angle-right', _('Customize Formatting')); Options.extend_tab('formatting', '\