From 0cf5815f42736d27187d7696c46884aa5b741510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Wed, 12 Aug 2015 16:11:15 +0200 Subject: [PATCH] add functionality to make a forwarded process slide container --- js/components/ascribe_forms/form_loan.js | 2 +- .../ascribe_slides_container/slides_container.js | 15 ++++++++++----- js/components/header.js | 2 +- js/components/register_piece.js | 16 +++++++--------- .../ascribe_forms/cyland_additional_data_form.js | 2 +- .../components/cyland/cyland_register_piece.js | 6 ++++-- 6 files changed, 24 insertions(+), 19 deletions(-) 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')} )