Merge "ui: fixing broken 'View original' link on contextual nav bar"

This commit is contained in:
Mario Russo 2015-02-04 20:34:00 +00:00 committed by Gerrit Code Review
commit d486f210ec
1 changed files with 2 additions and 2 deletions

View File

@ -721,11 +721,11 @@ cam.IndexPage = React.createClass({
fileName = goog.string.subs('/%s', rm.file.fileName); fileName = goog.string.subs('/%s', rm.file.fileName);
} }
var downloadUrl = goog.string.subs('%s/%s%s', this.props.config.downloadHelper, rm.blobRef, fileName); var downloadUrl = goog.string.subs('%s%s%s', this.props.config.downloadHelper, rm.blobRef, fileName);
return React.DOM.button( return React.DOM.button(
{ {
key:'viewSelection', key:'viewSelection',
onClick: this.handleOpenWindow_.bind(null, this, downloadUrl), onClick: this.handleOpenWindow_.bind(null, downloadUrl),
}, },
'View original' 'View original'
); );