diff --git a/js/app.js b/js/app.js index 1bc5d9c0..13aa38a5 100644 --- a/js/app.js +++ b/js/app.js @@ -47,6 +47,7 @@ class AppGateway { } catch(err) { // if there are no matching subdomains, we're routing // to the default frontend + console.logGlobal(err); this.load('default'); } } diff --git a/js/components/ascribe_forms/form.js b/js/components/ascribe_forms/form.js index 057c1d53..ecbd17de 100644 --- a/js/components/ascribe_forms/form.js +++ b/js/components/ascribe_forms/form.js @@ -90,7 +90,7 @@ let Form = React.createClass({ } } else { - console.error(err); + console.logGlobal(err); this.setState({errors: [getLangText('Something went wrong, please try again later')]}); } this.setState({submitted: false}); diff --git a/js/components/ascribe_uploader/react_s3_fine_uploader.js b/js/components/ascribe_uploader/react_s3_fine_uploader.js index 1c85a659..e6c5cb20 100644 --- a/js/components/ascribe_uploader/react_s3_fine_uploader.js +++ b/js/components/ascribe_uploader/react_s3_fine_uploader.js @@ -271,7 +271,7 @@ var ReactS3FineUploader = React.createClass({ }) .catch((err) => { defer.failure(err); - console.error(err); + console.logGlobal(err); }); return defer; }, diff --git a/js/fetchers/edition_list_fetcher.js b/js/fetchers/edition_list_fetcher.js index 6365a4be..94a2116d 100644 --- a/js/fetchers/edition_list_fetcher.js +++ b/js/fetchers/edition_list_fetcher.js @@ -11,9 +11,9 @@ let EditionListFetcher = { */ fetch(pieceId, page, pageSize, orderBy, orderAsc) { let ordering = generateOrderingQueryParams(orderBy, orderAsc); - return requests.get('editions_list', { + return requests.get('editions_list', { 'piece_id': pieceId, - page, + page, pageSize, ordering }); diff --git a/js/stores/edition_list_store.js b/js/stores/edition_list_store.js index c7fdf52c..12835603 100644 --- a/js/stores/edition_list_store.js +++ b/js/stores/edition_list_store.js @@ -87,7 +87,7 @@ class EditionListStore { this.editionList[pieceId].pageSize = prevEditionListPageSize; }) .catch((err) => { - console.error(err); + console.logGlobal(err); }); } diff --git a/js/utils/api_urls_utils.js b/js/utils/api_urls_utils.js deleted file mode 100644 index e69de29b..00000000 diff --git a/js/utils/general_utils.js b/js/utils/general_utils.js index 54c7b3ed..00f1da2c 100644 --- a/js/utils/general_utils.js +++ b/js/utils/general_utils.js @@ -117,7 +117,7 @@ export function mergeOptions(...l) { * Merges a number of objects even if there're having duplicates. * * DOES NOT RETURN AN ERROR! - * + * * Takes a list of object and merges their keys to one object. * Uses mergeOptions for two objects. * @param {[type]} l [description]