diff options
Diffstat (limited to 'share/www/script/futon.browse.js')
-rw-r--r-- | share/www/script/futon.browse.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index ee8da4e6..db899df3 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -335,7 +335,7 @@ var matches = []; for (var i = 0; i < docs.rows.length; i++) { var docName = docs.rows[i].id.substr(8); - if (docName.substr(0, text.length) == text) { + if (docName.indexOf(text) == 0) { matches[i] = docName; } } @@ -350,7 +350,7 @@ var matches = []; if (!doc.views) return; for (var viewName in doc.views) { - if (viewName.substr(0, text.length) == text) { + if (viewName.indexOf(text) == 0) { matches.push(viewName); } } |