diff --git a/client/js/main.js b/client/js/main.js index 784db03..6fb92c3 100644 --- a/client/js/main.js +++ b/client/js/main.js @@ -45,6 +45,7 @@ Promise.all([tags.refreshExport(), api.loginFromCookies()]) page('/'); events.notify( events.Error, - 'An error happened while trying to log you in: ' + errorMessage); + 'An error happened while trying to log you in: ' + + errorMessage); } }); diff --git a/client/js/tags.js b/client/js/tags.js index 49f70a2..5b1c3b0 100644 --- a/client/js/tags.js +++ b/client/js/tags.js @@ -7,8 +7,7 @@ const events = require('./events.js'); let _export = null; let _stylesheet = null; -function _tagsToDictionary(tags) -{ +function _tagsToDictionary(tags) { let dict = {}; for (let tag of tags) { for (let name of tag.names) { @@ -18,8 +17,7 @@ function _tagsToDictionary(tags) return dict; } -function _tagCategoriesToDictionary(categories) -{ +function _tagCategoriesToDictionary(categories) { let dict = {}; for (let category of categories) { dict[category.name] = category; diff --git a/client/js/util/views.js b/client/js/util/views.js index 51b079c..8dd4115 100644 --- a/client/js/util/views.js +++ b/client/js/util/views.js @@ -78,8 +78,8 @@ function makeSelect(options) { } function makeInput(options) { - return _makeLabel(options) - + makeVoidElement( + return _makeLabel(options) + + makeVoidElement( 'input', { type: options.inputType, name: options.name, @@ -120,7 +120,8 @@ function makeColorInput(options) { type: 'color', value: options.value || '', }); - return makeNonVoidElement('label', {class: 'color'}, colorInput + textInput); + return makeNonVoidElement( + 'label', {class: 'color'}, colorInput + textInput); } function makeTagLink(name) { diff --git a/client/js/views/endless_page_view.js b/client/js/views/endless_page_view.js index 795c2da..d961a0f 100644 --- a/client/js/views/endless_page_view.js +++ b/client/js/views/endless_page_view.js @@ -116,10 +116,12 @@ class EndlessPageView { '.page-content-holder'); ctx.pageRenderer.render(pageRendererCtx); - if (pageNumber < this.minPageShown || this.minPageShown === null) { + if (pageNumber < this.minPageShown || + this.minPageShown === null) { this.minPageShown = pageNumber; } - if (pageNumber > this.maxPageShown || this.maxPageShown === null) { + if (pageNumber > this.maxPageShown || + this.maxPageShown === null) { this.maxPageShown = pageNumber; } diff --git a/client/js/views/help_view.js b/client/js/views/help_view.js index 0c6bebf..f43a1a6 100644 --- a/client/js/views/help_view.js +++ b/client/js/views/help_view.js @@ -19,7 +19,7 @@ class HelpView { 'users': views.getTemplate('help-search-users'), 'tags': views.getTemplate('help-search-tags'), } - } + }; } render(ctx) { diff --git a/client/js/views/tag_categories_view.js b/client/js/views/tag_categories_view.js index 93a6bb1..f00c86f 100644 --- a/client/js/views/tag_categories_view.js +++ b/client/js/views/tag_categories_view.js @@ -37,8 +37,8 @@ class TagListHeaderView { } } else { const existingCategory = existingCategories[name]; - if (existingCategory.color !== category.color - || existingCategory.name !== category.name) { + if (existingCategory.color !== category.color || + existingCategory.name !== category.name) { changedCategories.push(category); } }