X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/2b7820cdaddf2a9db01c2091fa3686f4909119da..61432b88a4121ed5b07335c87b8abba572f6923b:/searchlocal.js diff --git a/searchlocal.js b/searchlocal.js index ac38dce..5d7493b 100644 --- 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) {