Close #982
This commit is contained in:
parent
2e8146a92f
commit
e5012d6b44
@ -1,3 +1,4 @@
|
|||||||
|
- Added possibility to combine board-list toggle and custom text.
|
||||||
- Fix Thread Hiding initialization error.
|
- Fix Thread Hiding initialization error.
|
||||||
|
|
||||||
# 3.0.0 - *2013-04-07*
|
# 3.0.0 - *2013-04-07*
|
||||||
|
|||||||
@ -78,10 +78,10 @@ Header =
|
|||||||
nodes = text.match(/[\w@]+(-(all|title|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map (t) ->
|
nodes = text.match(/[\w@]+(-(all|title|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map (t) ->
|
||||||
if /^[^\w@]/.test t
|
if /^[^\w@]/.test t
|
||||||
return $.tn t
|
return $.tn t
|
||||||
if t is 'toggle-all'
|
if /^toggle-all/.test t
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
className: 'show-board-list-button'
|
className: 'show-board-list-button'
|
||||||
textContent: '+'
|
textContent: if m = t.match /-text:"(.+)"/ then m[1] else '+'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on a, 'click', Header.toggleBoardList
|
$.on a, 'click', Header.toggleBoardList
|
||||||
return a
|
return a
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user