1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +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')} label={getLangText('Loanee Email')}
onBlur={this.handleOnBlur} onBlur={this.handleOnBlur}
editable={!this.props.email} editable={!this.props.email}
overrideForm={this.props.email}> overrideForm={!!this.props.email}>
<input <input
value={this.props.email} value={this.props.email}
type="email" type="email"
@ -159,7 +159,7 @@ let LoanForm = React.createClass({
name='gallery_name' name='gallery_name'
label={getLangText('Gallery/exhibition (optional)')} label={getLangText('Gallery/exhibition (optional)')}
editable={!this.props.gallery} editable={!this.props.gallery}
overrideForm={this.props.gallery}> overrideForm={!!this.props.gallery}>
<input <input
value={this.props.gallery} value={this.props.gallery}
type="text" 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 // then we want to "replace" (in this case append) the current url with ?slide_num=0
if(isNaN(slideNum) && this.state.slideNum === -1) { if(isNaN(slideNum) && this.state.slideNum === -1) {
slideNum = 0; slideNum = 0;
queryParams.slide_num = slideNum; queryParams.slide_num = slideNum;
this.replaceWith(this.getPathname(), null, queryParams); this.replaceWith(this.getPathname(), null, queryParams);