lib/carte/client/views/header.cjsx in carte-server-0.0.9 vs lib/carte/client/views/header.cjsx in carte-server-0.0.10

- old
+ new

@@ -2,10 +2,11 @@ $ = require('jquery') React = require('react') Edit = require('./edit') CardModel = require('../models/card') ModalTrigger = require('react-bootstrap/lib/ModalTrigger') +helpers = require('../helpers') config = require('../../shared/config.json') module.exports = React.createClass displayName: 'Header' @@ -34,13 +35,13 @@ render: -> <nav className="navbar navbar-default" style={{padding:"0px",backgroundColor:"white",marginBottom:"5px"}}> <div className="container-fluid"> <div className="navbar-header"> - <a className="navbar-brand" href={if config.icon_link then config.icon_link else "#/"} style={{paddingTop:"10px"}}> + <a className="navbar-brand" onClick={helpers.reload} href={if config.icon_link then config.icon_link else "#/"} style={{paddingTop:"10px"}}> <img alt="Brand" src="/images/icon.png" width="30" height="30" /> </a> - <a className="navbar-brand" href="#/"> + <a className="navbar-brand" onClick={helpers.reload} href="#/"> {config.title} </a> </div> <div> <form className="navbar-form navbar-left" role="search">