diff --git a/src/components/navigation/www/navigation.jsx b/src/components/navigation/www/navigation.jsx index 1b8a3b265..62167ff5f 100644 --- a/src/components/navigation/www/navigation.jsx +++ b/src/components/navigation/www/navigation.jsx @@ -11,6 +11,7 @@ var api = require('../../../lib/api'); var Avatar = require('../../avatar/avatar.jsx'); var Button = require('../../forms/button.jsx'); var Dropdown = require('../../dropdown/dropdown.jsx'); +var Form = require('../../forms/form.jsx'); var Input = require('../../forms/input.jsx'); var log = require('../../../lib/log.js'); var Login = require('../../login/login.jsx'); @@ -173,6 +174,9 @@ var Navigation = React.createClass({ this.props.dispatch(sessionActions.refreshSession()); this.closeRegistration(); }, + onSearchSubmit: function (formData) { + window.location.href = '/search/projects?q=' + formData.q; + }, render: function () { var classes = classNames({ 'logged-in': this.props.session.session.user @@ -219,14 +223,13 @@ var Navigation = React.createClass({ -
+