From 943c7503ea9c1143acd030cecb8b4a129377ef0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Thu, 16 Jul 2015 11:39:05 +0200 Subject: [PATCH] fix edition creation display bug on piece detail --- .../accordion_list_item_edition_widget.js | 2 +- js/components/ascribe_detail/piece.js | 2 +- js/components/ascribe_forms/form.js | 1 + sass/main.scss | 5 ----- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/js/components/ascribe_accordion_list/accordion_list_item_edition_widget.js b/js/components/ascribe_accordion_list/accordion_list_item_edition_widget.js index 7e108ae0..232dd983 100644 --- a/js/components/ascribe_accordion_list/accordion_list_item_edition_widget.js +++ b/js/components/ascribe_accordion_list/accordion_list_item_edition_widget.js @@ -60,7 +60,7 @@ let AccordionListItemEditionWidget = React.createClass({ if(isEditionListOpen) { // this is the loading feedback for the editions // button. - // + // // PLEASE FUTURE TIM, DO NOT FUCKING REMOVE IT AGAIN! if(typeof this.state.editionList[pieceId] === 'undefined') { return ( diff --git a/js/components/ascribe_detail/piece.js b/js/components/ascribe_detail/piece.js index 9ad80e1c..94ac82a4 100644 --- a/js/components/ascribe_detail/piece.js +++ b/js/components/ascribe_detail/piece.js @@ -79,7 +79,7 @@ let Piece = React.createClass({ handleEditionCreationSuccess() { PieceActions.updateProperty({key: 'num_editions', value: 0}); - PieceListStore.fetchPieceList(this.state.page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc); + PieceListActions.fetchPieceList(this.state.page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc); this.toggleCreateEditionsDialog(); }, diff --git a/js/components/ascribe_forms/form.js b/js/components/ascribe_forms/form.js index 9d471db3..057c1d53 100644 --- a/js/components/ascribe_forms/form.js +++ b/js/components/ascribe_forms/form.js @@ -90,6 +90,7 @@ let Form = React.createClass({ } } else { + console.error(err); this.setState({errors: [getLangText('Something went wrong, please try again later')]}); } this.setState({submitted: false}); diff --git a/sass/main.scss b/sass/main.scss index 332df470..6976f3b1 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -44,11 +44,6 @@ hr { margin-bottom: 15px; } -form{ - max-width: 600px; - margin: auto; -} - #main { height: 100%; }