1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

fix locked fields

This commit is contained in:
Tim Daubenschütz 2015-08-21 11:29:57 +02:00
parent 3b46dbb9f5
commit e0b2f352df
2 changed files with 2 additions and 3 deletions

View File

@ -148,7 +148,7 @@ let LoanForm = React.createClass({
label={getLangText('Loanee Email')}
onBlur={this.handleOnBlur}
editable={!this.props.email}
overrideForm={this.props.email}>
overrideForm={!!this.props.email}>
<input
value={this.props.email}
type="email"
@ -159,7 +159,7 @@ let LoanForm = React.createClass({
name='gallery_name'
label={getLangText('Gallery/exhibition (optional)')}
editable={!this.props.gallery}
overrideForm={this.props.gallery}>
overrideForm={!!this.props.gallery}>
<input
value={this.props.gallery}
type="text"

View File

@ -121,7 +121,6 @@ let SlidesContainer = React.createClass({
// then we want to "replace" (in this case append) the current url with ?slide_num=0
if(isNaN(slideNum) && this.state.slideNum === -1) {
slideNum = 0;
queryParams.slide_num = slideNum;
this.replaceWith(this.getPathname(), null, queryParams);