From ae970c678a63bcc9440ff1e32fa5dfb424da0555 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 13 Mar 2013 21:25:48 +0100 Subject: [PATCH] Disable spellchecking in the various settings' inputs. --- 4chan_x.user.js | 8 +++++--- src/features.coffee | 14 ++++++++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 90931245c..de7260e12 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1544,7 +1544,8 @@ ta = $.el('textarea', { name: name, className: 'field', - value: $.get(name, Conf[name]) + value: $.get(name, Conf[name]), + spellcheck: false }); $.on(ta, 'change', $.cb.value); $.add(div, ta); @@ -1554,14 +1555,14 @@ }, sauce: function(section) { var sauce; - section.innerHTML = "
Sauce is disabled.
\n
Lines starting with a # will be ignored.
\n
You can specify a display text by appending ;text:[text] to the URL.
\n\n"; + section.innerHTML = "
Sauce is disabled.
\n
Lines starting with a # will be ignored.
\n
You can specify a display text by appending ;text:[text] to the URL.
\n\n"; sauce = $('textarea', section); sauce.value = $.get('sauces', Conf['sauces']); return $.on(sauce, 'change', $.cb.value); }, rice: function(section) { var event, input, name, _i, _len, _ref; - section.innerHTML = "
\n Custom Board Navigation is disabled.\n
\n
In the following, board can translate to a board ID (a, b, etc...), the current board (current), or the Status/Twitter link (status, @).
\n
Board link: board
\n
Title link: board-title
\n
Full text link: board-full
\n
Custom text link: board-text:\"VIP Board\"
\n
Full board list toggle: toggle-all
\n
\n\n
\n Time Formatting is disabled.\n
:
\n
Supported format specifiers:
\n
Day: %a, %A, %d, %e
\n
Month: %m, %b, %B
\n
Year: %y
\n
Hour: %k, %H, %l, %I, %p, %P
\n
Minute: %M
\n
Second: %S
\n
\n\n
\n Quote Backlinks formatting is disabled.\n
:
\n
\n\n
\n File Info Formatting is disabled.\n
:
\n
Link: %l (truncated), %L (untruncated), %T (Unix timestamp)
\n
Original file name: %n (truncated), %N (untruncated), %t (Unix timestamp)
\n
Spoiler indicator: %p
\n
Size: %B (Bytes), %K (KB), %M (MB), %s (4chan default)
\n
Resolution: %r (Displays 'PDF' for PDF files)
\n
\n\n
\n Unread Tab Icon is disabled.\n \n \n
\n\n
\n Custom CSS is disabled.\n \n \n
"; + section.innerHTML = "
\n Custom Board Navigation is disabled.\n
\n
In the following, board can translate to a board ID (a, b, etc...), the current board (current), or the Status/Twitter link (status, @).
\n
Board link: board
\n
Title link: board-title
\n
Full text link: board-full
\n
Custom text link: board-text:\"VIP Board\"
\n
Full board list toggle: toggle-all
\n
\n\n
\n Time Formatting is disabled.\n
:
\n
Supported format specifiers:
\n
Day: %a, %A, %d, %e
\n
Month: %m, %b, %B
\n
Year: %y
\n
Hour: %k, %H, %l, %I, %p, %P
\n
Minute: %M
\n
Second: %S
\n
\n\n
\n Quote Backlinks formatting is disabled.\n
:
\n
\n\n
\n File Info Formatting is disabled.\n
:
\n
Link: %l (truncated), %L (untruncated), %T (Unix timestamp)
\n
Original file name: %n (truncated), %N (untruncated), %t (Unix timestamp)
\n
Spoiler indicator: %p
\n
Size: %B (Bytes), %K (KB), %M (MB), %s (4chan default)
\n
Resolution: %r (Displays 'PDF' for PDF files)
\n
\n\n
\n Unread Tab Icon is disabled.\n \n \n
\n\n
\n Custom CSS is disabled.\n \n \n
"; _ref = ['boardnav', 'time', 'backlink', 'fileInfo', 'favicon', 'usercss']; for (_i = 0, _len = _ref.length; _i < _len; _i++) { name = _ref[_i]; @@ -1631,6 +1632,7 @@ input = $('input', tr); input.name = key; input.value = $.get(key, Conf[key]); + input.spellcheck = false; $.on(input, 'keydown', Settings.keybind); $.add(tbody, tr); } diff --git a/src/features.coffee b/src/features.coffee index b5720f3f0..f64dd39b4 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -453,6 +453,7 @@ Settings = name: name className: 'field' value: $.get name, Conf[name] + spellcheck: false $.on ta, 'change', $.cb.value $.add div, ta return @@ -499,7 +500,7 @@ Settings =
  • %MD5: MD5 hash.
  • %board: Current board.
  • - + """ sauce = $ 'textarea', section sauce.value = $.get 'sauces', Conf['sauces'] @@ -509,7 +510,7 @@ Settings = section.innerHTML = """
    Custom Board Navigation is disabled. -
    +
    In the following, board can translate to a board ID (a, b, etc...), the current board (current), or the Status/Twitter link (status, @).
    Board link: board
    Title link: board-title
    @@ -520,7 +521,7 @@ Settings =
    Time Formatting is disabled. -
    :
    +
    :
    Supported format specifiers:
    Day: %a, %A, %d, %e
    Month: %m, %b, %B
    @@ -532,12 +533,12 @@ Settings =
    Quote Backlinks formatting is disabled. -
    :
    +
    :
    File Info Formatting is disabled. -
    :
    +
    :
    Link: %l (truncated), %L (untruncated), %T (Unix timestamp)
    Original file name: %n (truncated), %N (untruncated), %t (Unix timestamp)
    Spoiler indicator: %p
    @@ -559,7 +560,7 @@ Settings =
    Custom CSS is disabled. - +
    """ for name in ['boardnav', 'time', 'backlink', 'fileInfo', 'favicon', 'usercss'] @@ -620,6 +621,7 @@ Settings = input = $ 'input', tr input.name = key input.value = $.get key, Conf[key] + input.spellcheck = false $.on input, 'keydown', Settings.keybind $.add tbody, tr return