Use a textarea for custom navigation.

This commit is contained in:
Zixaphir 2013-05-10 04:12:09 -07:00
parent 558cbc7364
commit 5e105642ca
5 changed files with 9 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -122,7 +122,7 @@ Header =
$.add Header.bar, [boardList, Header.shortcuts, Header.notify, Header.toggle]
Header.setCustomNav Conf['Custom Board Navigation']
Header.generateBoardList Conf['boardnav']
Header.generateBoardList Conf['boardnav'].replace /(\r\n|\n|\r)/g, ' '
$.sync 'Custom Board Navigation', Header.setCustomNav
$.sync 'boardnav', Header.generateBoardList

View File

@ -5,7 +5,7 @@
</fieldset>
<fieldset>
<legend>Custom Board Navigation</span></legend>
<div><input name=boardnav class=field spellcheck=false></div>
<div><textarea name=boardnav class=field spellcheck=false></textarea></div>
<div>In the following, <code>board</code> can translate to a board ID (<code>a</code>, <code>b</code>, etc...), the current board (<code>current</code>), or the Status/Twitter link (<code>status</code>, <code>@</code>).</div>
<div>
For example:<br>
@ -24,6 +24,7 @@
<div>External link: <code>external-text:"Google","http://www.google.com"</code></div>
<div>Combinations are possible: <code>board-index-text:"VIP Index"</code></div>
<div>Full board list toggle: <code>toggle-all</code></div>
<div>Line breaks are allowed and will be replaced with spaces</div>
</fieldset>
<fieldset>