diff --git a/js/components/ascribe_forms/form_loan.js b/js/components/ascribe_forms/form_loan.js index a0202e7f..3fc6bd6e 100644 --- a/js/components/ascribe_forms/form_loan.js +++ b/js/components/ascribe_forms/form_loan.js @@ -140,7 +140,7 @@ let LoanForm = React.createClass({
}> -
+

{this.props.loanHeading}

{getLangText('COLLECTION')}; - addNewWork = this.props.showAddWork ? + {getLangText('NEW WORK')} : null; + addNewWork = this.props.showAddWork ? + {getLangText('NEW WORK')} : null; } else { account = {getLangText('LOGIN')}; diff --git a/js/components/register_piece.js b/js/components/register_piece.js index 229592b0..78474f46 100644 --- a/js/components/register_piece.js +++ b/js/components/register_piece.js @@ -117,7 +117,8 @@ let RegisterPiece = React.createClass( { } }, - changeSlide() { + // basically redirects to the second slide (index: 1), when the user is not logged in + onLoggedOut() { // only transition to the login store, if user is not logged in // ergo the currentUser object is not properly defined if(this.state.currentUser && !this.state.currentUser.email) { @@ -125,11 +126,6 @@ let RegisterPiece = React.createClass( { } }, - // basically redirects to the second slide (index: 1), when the user is not logged in - onLoggedOut() { - this.refs.slidesContainer.setSlideNum(1); - }, - onLogin() { // once the currentUser object from UserStore is defined (eventually the user was transitioned // to the login form via the slider and successfully logged in), we can direct him back to the @@ -141,10 +137,12 @@ let RegisterPiece = React.createClass( { render() { return ( - +
+ onClick={this.onLoggedOut} + onFocus={this.onLoggedOut}> }>
-

Additional Information

+

Provide supporting materials

+
@@ -139,7 +141,7 @@ let CylandRegisterPiece = React.createClass({ style={{paddingBottom: 0}}> - {' ' + getLangText('I agree to the Terms of Service the art price') + ' '} + {' ' + getLangText('I agree to the Terms of Service of Cyland Archive') + ' '} ( {getLangText('read')} )