From e5012d6b44eeee2831c8ffee3978ef1e1c35a802 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 8 Apr 2013 10:02:02 +0200 Subject: [PATCH] Close #982 --- CHANGELOG.md | 1 + src/features.coffee | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e889e623..f7f5f96e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- Added possibility to combine board-list toggle and custom text. - Fix Thread Hiding initialization error. # 3.0.0 - *2013-04-07* diff --git a/src/features.coffee b/src/features.coffee index c633b2f32..7e12a793a 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -78,10 +78,10 @@ Header = nodes = text.match(/[\w@]+(-(all|title|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map (t) -> if /^[^\w@]/.test t return $.tn t - if t is 'toggle-all' + if /^toggle-all/.test t a = $.el 'a', className: 'show-board-list-button' - textContent: '+' + textContent: if m = t.match /-text:"(.+)"/ then m[1] else '+' href: 'javascript:;' $.on a, 'click', Header.toggleBoardList return a