git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b7820c
)
browser: search "+" (add any) resets columns
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 7 Dec 2010 20:48:44 +0000
(21:48 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 15 Dec 2010 21:40:44 +0000
(22:40 +0100)
searchlocal.js
patch
|
blob
|
history
diff --git
a/searchlocal.js
b/searchlocal.js
index ac38dce9501aa502d82dc387095e937ae7880507..5d7493b100616134bddd693d6cdef245010b2974 100644
(file)
--- a/
searchlocal.js
+++ b/
searchlocal.js
@@
-67,6
+67,11
@@
function filtertable(query, action) {
query = match[2];
}
+ if (query == '' && action == 'add') {
+ // restore all columns if explicitly adding all ("+")
+ filtercols(table, function(){return true}, 'add');
+ // continue to restore rows
+ }
if (/^[a-z_]+$/.test(query) && document.querySelector('.b-a-'+query)) {
// column if class b-a-* exists
var match = function(th) {