From 1d2ff51f970f94bc3aad1c8a5f4a58acefc833b3 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Mon, 30 Apr 2018 14:31:51 +0200 Subject: [PATCH] uneeded commas removed --- frontend-js/src/main/js/Export.js | 2 +- frontend-js/src/main/js/ObjectWithListeners.js | 2 +- frontend-js/src/main/js/SessionObjectType.js | 2 +- frontend-js/src/main/js/gui/Panel.js | 2 +- frontend-js/src/main/js/gui/PanelControlElementType.js | 2 +- frontend-js/src/main/js/gui/export/AbstractExportPanel.js | 2 +- frontend-js/src/main/js/gui/export/ElementExportPanel.js | 2 +- frontend-js/src/main/js/gui/export/NetworkExportPanel.js | 2 +- frontend-js/src/main/js/gui/leftPanel/LeftPanel.js | 2 +- frontend-js/src/main/js/gui/leftPanel/ProjectInfoPanel.js | 8 ++++---- .../src/main/js/gui/leftPanel/PublicationListDialog.js | 2 +- frontend-js/src/main/js/gui/topMenu/TopMenu.js | 4 ++-- frontend-js/src/main/js/map/data/MapModel.js | 2 +- frontend-js/src/main/js/map/overlay/UserDbOverlay.js | 8 ++++---- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/frontend-js/src/main/js/Export.js b/frontend-js/src/main/js/Export.js index 3c096991c0..ee603b203e 100644 --- a/frontend-js/src/main/js/Export.js +++ b/frontend-js/src/main/js/Export.js @@ -131,7 +131,7 @@ Export.prototype.addTab = function(params, navElement, contentElement) { this._panels.push(new params.panelClass({ element : contentDiv, project : self.getProject(), - configuration : self.getConfiguration(), + configuration : self.getConfiguration() })); }; diff --git a/frontend-js/src/main/js/ObjectWithListeners.js b/frontend-js/src/main/js/ObjectWithListeners.js index b1d55eb855..633390bd4e 100644 --- a/frontend-js/src/main/js/ObjectWithListeners.js +++ b/frontend-js/src/main/js/ObjectWithListeners.js @@ -200,7 +200,7 @@ ObjectWithListeners.prototype.firePropertyChangeListener = function (propertyNam propertyName: propertyName, object: self, oldVal: oldValue, - newVal: newValue, + newVal: newValue }; promises.push(listenerList[i](e)); } diff --git a/frontend-js/src/main/js/SessionObjectType.js b/frontend-js/src/main/js/SessionObjectType.js index 1464e5b946..6240a50fff 100644 --- a/frontend-js/src/main/js/SessionObjectType.js +++ b/frontend-js/src/main/js/SessionObjectType.js @@ -13,7 +13,7 @@ var SessionObjectType = { ZOOM_LEVEL : "ZOOM_LEVEL", TOKEN: "MINERVA_AUTH_TOKEN", - LOGIN: "LOGIN", + LOGIN: "LOGIN" }; module.exports = SessionObjectType; diff --git a/frontend-js/src/main/js/gui/Panel.js b/frontend-js/src/main/js/gui/Panel.js index 72f249938f..e58b7684da 100644 --- a/frontend-js/src/main/js/gui/Panel.js +++ b/frontend-js/src/main/js/gui/Panel.js @@ -208,7 +208,7 @@ Panel.prototype.openDialog = function (content, options) { contentDiv.style.display = "none"; $(this).dialog('destroy'); }, - dialogClass: options.className, + dialogClass: options.className }); this.assignDialogOptions(div, options); diff --git a/frontend-js/src/main/js/gui/PanelControlElementType.js b/frontend-js/src/main/js/gui/PanelControlElementType.js index 6b2347f96d..dd7610f683 100644 --- a/frontend-js/src/main/js/gui/PanelControlElementType.js +++ b/frontend-js/src/main/js/gui/PanelControlElementType.js @@ -54,7 +54,7 @@ var PanelControlElementType = { MENU_SHOW_OVERVIEW_BUTTON : "MENU_SHOW_OVERVIEW_BUTTON", MENU_VERSION_DIV : "MENU_VERSION_DIV", - FOOTER_LOADING_DIV : "FOOTER_LOADING_DIV", + FOOTER_LOADING_DIV : "FOOTER_LOADING_DIV" }; module.exports = PanelControlElementType; diff --git a/frontend-js/src/main/js/gui/export/AbstractExportPanel.js b/frontend-js/src/main/js/gui/export/AbstractExportPanel.js index 8f9b0beb4b..d18f91310c 100644 --- a/frontend-js/src/main/js/gui/export/AbstractExportPanel.js +++ b/frontend-js/src/main/js/gui/export/AbstractExportPanel.js @@ -98,7 +98,7 @@ AbstractExportPanel.prototype._createSelectTypeDiv = function (elementTypes) { }); typeDiv.appendChild(Functions.createElement({ type: "h4", - content: " TYPE:", + content: " TYPE:" })); var choicesContainer = Functions.createElement({ type: "ul", diff --git a/frontend-js/src/main/js/gui/export/ElementExportPanel.js b/frontend-js/src/main/js/gui/export/ElementExportPanel.js index 49da37b8b1..2d0c3028e9 100644 --- a/frontend-js/src/main/js/gui/export/ElementExportPanel.js +++ b/frontend-js/src/main/js/gui/export/ElementExportPanel.js @@ -73,7 +73,7 @@ ElementExportPanel.prototype.createResponseString = function () { type: types, complete: true, includedCompartmentIds: includedCompartmentIds, - excludedCompartmentIds: excludedCompartmentIds, + excludedCompartmentIds: excludedCompartmentIds })); } return Promise.all(promises); diff --git a/frontend-js/src/main/js/gui/export/NetworkExportPanel.js b/frontend-js/src/main/js/gui/export/NetworkExportPanel.js index 620f8daeb7..d34f0b40a9 100644 --- a/frontend-js/src/main/js/gui/export/NetworkExportPanel.js +++ b/frontend-js/src/main/js/gui/export/NetworkExportPanel.js @@ -179,7 +179,7 @@ NetworkExportPanel.prototype.createResponseString = function () { type: types, complete: true, includedCompartmentIds: includedCompartmentIds, - excludedCompartmentIds: excludedCompartmentIds, + excludedCompartmentIds: excludedCompartmentIds })); } return Promise.all(promises); diff --git a/frontend-js/src/main/js/gui/leftPanel/LeftPanel.js b/frontend-js/src/main/js/gui/leftPanel/LeftPanel.js index 4780f4d656..5f89246359 100644 --- a/frontend-js/src/main/js/gui/leftPanel/LeftPanel.js +++ b/frontend-js/src/main/js/gui/leftPanel/LeftPanel.js @@ -45,7 +45,7 @@ LeftPanel.prototype._createPanelGui = function () { var header = new Header({ element: headerDiv, customMap: self.getMap(), - optionsMenu: true, + optionsMenu: true }); self.getElement().appendChild(headerDiv); diff --git a/frontend-js/src/main/js/gui/leftPanel/ProjectInfoPanel.js b/frontend-js/src/main/js/gui/leftPanel/ProjectInfoPanel.js index 149d2c9c58..c981bc420c 100644 --- a/frontend-js/src/main/js/gui/leftPanel/ProjectInfoPanel.js +++ b/frontend-js/src/main/js/gui/leftPanel/ProjectInfoPanel.js @@ -89,23 +89,23 @@ ProjectInfoPanel.prototype._createInfoPanelGui = function () { infoDiv.appendChild(infoTitle); var dialogDiv = Functions.createElement({ - type: "div", + type: "div" }); this.publicationListDialog = new PublicationListDialog({ customMap: self.getMap(), - element: dialogDiv, + element: dialogDiv }); dataTab = Functions.createElement({ - type: "ul", + type: "ul" }); infoDiv.appendChild(dataTab); var projectPublicationsText = Functions.createElement({ type: "span", name: "projectPublicationsText", - style: "font-family:FontAwesome; font-weight: normal;font-style: normal;cursor: pointer", + style: "font-family:FontAwesome; font-weight: normal;font-style: normal;cursor: pointer" }); this.setControlElement(PanelControlElementType.INFO_PROJECT_PUBLICATIONS_TEXT, projectPublicationsText); diff --git a/frontend-js/src/main/js/gui/leftPanel/PublicationListDialog.js b/frontend-js/src/main/js/gui/leftPanel/PublicationListDialog.js index 1ff2141959..5f757ba484 100644 --- a/frontend-js/src/main/js/gui/leftPanel/PublicationListDialog.js +++ b/frontend-js/src/main/js/gui/leftPanel/PublicationListDialog.js @@ -134,7 +134,7 @@ PublicationListDialog.prototype.show = function () { autoOpen: false, resizable: false, width: Math.max(window.innerWidth / 2, window.innerWidth - 100), - height: Math.max(window.innerHeight / 2, window.innerHeight - 100), + height: Math.max(window.innerHeight / 2, window.innerHeight - 100) }); } diff --git a/frontend-js/src/main/js/gui/topMenu/TopMenu.js b/frontend-js/src/main/js/gui/topMenu/TopMenu.js index 84bd3d05ae..a38f9a6abf 100644 --- a/frontend-js/src/main/js/gui/topMenu/TopMenu.js +++ b/frontend-js/src/main/js/gui/topMenu/TopMenu.js @@ -41,7 +41,7 @@ TopMenu.prototype._createGui = function () { var hideButton = Functions.createElement({ type: "button", className: "headerHideButton", - name: "hideButton", + name: "hideButton" }); hideButtonDiv.appendChild(hideButton); self.setControlElement(PanelControlElementType.MENU_HIDE_LEFT_PANEL_BUTTON, hideButton); @@ -49,7 +49,7 @@ TopMenu.prototype._createGui = function () { var hideButtonIcon = Functions.createElement({ type: "i", className: "fa fa-chevron-left", - name: "hideButtonIcon", + name: "hideButtonIcon" }); hideButton.appendChild(hideButtonIcon); self.setControlElement(PanelControlElementType.MENU_HIDE_LEFT_PANEL_BUTTON_ICON, hideButtonIcon); diff --git a/frontend-js/src/main/js/map/data/MapModel.js b/frontend-js/src/main/js/map/data/MapModel.js index 7f004481f5..493b92847d 100644 --- a/frontend-js/src/main/js/map/data/MapModel.js +++ b/frontend-js/src/main/js/map/data/MapModel.js @@ -83,7 +83,7 @@ MapModel.prototype.getAliases = function (params) { type: params.type, modelId: self.getId(), includedCompartmentIds: params.includedCompartmentIds, - excludedCompartmentIds: params.excludedCompartmentIds, + excludedCompartmentIds: params.excludedCompartmentIds }).then(function (lightAliases) { var identifiedElements = []; diff --git a/frontend-js/src/main/js/map/overlay/UserDbOverlay.js b/frontend-js/src/main/js/map/overlay/UserDbOverlay.js index c78b6c3aac..f8298eab03 100644 --- a/frontend-js/src/main/js/map/overlay/UserDbOverlay.js +++ b/frontend-js/src/main/js/map/overlay/UserDbOverlay.js @@ -124,7 +124,7 @@ UserDbOverlay.prototype.addSurface = function (params) { self.enableAddRemoveElements(); return self.callListeners("onSearch", { fitBounds: false, - identifiedElements: elements, + identifiedElements: elements }); }).then(null, function (error) { self.enableAddRemoveElements(); @@ -151,7 +151,7 @@ UserDbOverlay.prototype.removeMarker = function (params) { self.enableAddRemoveElements(); return self.callListeners("onSearch", { fitBounds: false, - identifiedElements: elements, + identifiedElements: elements }); }).then(null, function (error) { self.enableAddRemoveElements(); @@ -177,7 +177,7 @@ UserDbOverlay.prototype.removeSurface = function (params) { self.enableAddRemoveElements(); return self.callListeners("onSearch", { fitBounds: false, - identifiedElements: elements, + identifiedElements: elements }); }).then(null, function (error) { self.enableAddRemoveElements(); @@ -241,7 +241,7 @@ UserDbOverlay.prototype.clear = function () { }; return self.callListeners("onSearch", { fitBounds: false, - identifiedElements: [], + identifiedElements: [] }); }; -- GitLab