(function(conjur) { 'use strict'; conjur.views.mixins.Search = { handleSubmit: function(e) { var search = this.refs.input.getDOMNode().value; if (search && search.length != 0) { conjur.app.router.navigate('/ui/search/' + encodeURIComponent(search), {trigger: true}); } return false; } }; })(conjur);