Repository: couchdb-fauxton Updated Branches: refs/heads/master 7e99366c4 -> 9aafbd80e
clearValue method added to lookahead tray Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/9aafbd80 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/9aafbd80 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/9aafbd80 Branch: refs/heads/master Commit: 9aafbd80e3a4545c292ca4c3251648fc0c80928a Parents: 7e99366 Author: Benjamin Keen <[email protected]> Authored: Mon Dec 29 08:51:06 2014 -0800 Committer: Benjamin Keen <[email protected]> Committed: Mon Dec 29 08:51:06 2014 -0800 ---------------------------------------------------------------------- app/addons/fauxton/components.js | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/9aafbd80/app/addons/fauxton/components.js ---------------------------------------------------------------------- diff --git a/app/addons/fauxton/components.js b/app/addons/fauxton/components.js index 9225096..4066e1a 100644 --- a/app/addons/fauxton/components.js +++ b/app/addons/fauxton/components.js @@ -1058,6 +1058,10 @@ function(app, FauxtonAPI, ace, spin, ZeroClipboard) { this.dbSearchTypeahead.render(); }, + clearValue: function () { + this.$('.search-autocomplete').val(''); + }, + cleanup: function () { $("body").off("click.lookaheadTray"); },
