Commit da65706a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

no longer necessary jsf elements removed

parent ac0da810
...@@ -172,9 +172,11 @@ ServerConnector.getApiBaseUrl = function() { ...@@ -172,9 +172,11 @@ ServerConnector.getApiBaseUrl = function() {
ServerConnector.getServerBaseUrl = function() { ServerConnector.getServerBaseUrl = function() {
if (this._serverBaseUrl === undefined) { if (this._serverBaseUrl === undefined) {
var location = window.location; var url = "" + window.location.href;
this._serverBaseUrl = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '') if (!url.endsWith("/")) {
+ document.getElementById("authenticationForm:baseUrl").value; url = url.substr(0, url.lastIndexOf("/")+1);
}
this._serverBaseUrl = url;
} }
return this._serverBaseUrl; return this._serverBaseUrl;
}; };
......
...@@ -8,11 +8,6 @@ ...@@ -8,11 +8,6 @@
<h:outputStylesheet library="css" name="map.css"/> <h:outputStylesheet library="css" name="map.css"/>
<h:form id="_gmapForm"> <h:form id="_gmapForm">
<p:remoteCommand name="_searchMissingConnections" actionListener="#{missingConnectionMB.search}"/>
<h:inputHidden id="geneName" value="#{missingConnectionMB.geneName}"/>
<p:remoteCommand name="_setModelZoomLevel" actionListener="#{mapMB.setModelZoomLevel}"/>
<p:galleria id="legend" styleClass="legendBox" panelWidth="600" panelHeight="480"> <p:galleria id="legend" styleClass="legendBox" panelWidth="600" panelHeight="480">
<h:panelGroup layout="block" rendered ="#{not empty configurationMB.legendFile1}"> <h:panelGroup layout="block" rendered ="#{not empty configurationMB.legendFile1}">
<img src="#{configurationMB.legendFile1}" alt="legend 1/4"/> <img src="#{configurationMB.legendFile1}" alt="legend 1/4"/>
...@@ -31,13 +26,6 @@ ...@@ -31,13 +26,6 @@
<p:contextMenu id="contextMenu" model="#{exportMB.contextMenu}" /> <p:contextMenu id="contextMenu" model="#{exportMB.contextMenu}" />
<p:contextMenu id="selectionContextMenu" model="#{exportMB.imageExportMenu}" /> <p:contextMenu id="selectionContextMenu" model="#{exportMB.imageExportMenu}" />
<h:inputHidden id="selectedPolygon" value="#{exportMB.selectedPolygon}"/>
<h:inputHidden id="exportModelId" value="#{exportMB.selectedModelId}"/>
<h:inputHidden id="selectedDrugPolygon" value="#{drugMB.polygon}"/>
<h:panelGroup layout="block" id="submodelDialogGroup">
</h:panelGroup>
<p:dialog header="Overview" id="overviewDialog" widgetVar="overviewDialog" width="70%" height="100%" resizable="false"> <p:dialog header="Overview" id="overviewDialog" widgetVar="overviewDialog" width="70%" height="100%" resizable="false">
<div id="overviewContainer" class="overviewContainerClass"> <div id="overviewContainer" class="overviewContainerClass">
<div id="overviewDiv" class="overviewDivClass"></div> <div id="overviewDiv" class="overviewDivClass"></div>
...@@ -47,11 +35,6 @@ ...@@ -47,11 +35,6 @@
</h:form> </h:form>
<h:form id="authenticationForm">
<h:inputHidden id="authenticationToken" value="#{userMB.authenticationToken.id}"/>
<h:inputHidden id="baseUrl" value="#{request.contextPath}"/>
</h:form>
<h:form id="overlayConfigForm"> <h:form id="overlayConfigForm">
<h:inputHidden id="userMinColor" value="#{userMB.loggedUser.minColor}"/> <h:inputHidden id="userMinColor" value="#{userMB.loggedUser.minColor}"/>
<h:inputHidden id="userMaxColor" value="#{userMB.loggedUser.maxColor}"/> <h:inputHidden id="userMaxColor" value="#{userMB.loggedUser.maxColor}"/>
...@@ -63,12 +46,6 @@ ...@@ -63,12 +46,6 @@
<p:remoteCommand name="_sendReferenceGenomeDetailRequest" actionListener="#{referenceGenomeMB.requestJavasciptGenomeDetails}" /> <p:remoteCommand name="_sendReferenceGenomeDetailRequest" actionListener="#{referenceGenomeMB.requestJavasciptGenomeDetails}" />
</h:form> </h:form>
<h:form id="createSubmodelDialog">
<p:remoteCommand name="_createSubmodelDialog" actionListener="#{mapMB.createSubmodelDialog}" async="false"/>
</h:form>
<!-- loading dialog used for informing user that data is being loaded --> <!-- loading dialog used for informing user that data is being loaded -->
<p:dialog header="Loading" widgetVar="loadingDlg" resizable="false" id="loadingDlg" <p:dialog header="Loading" widgetVar="loadingDlg" resizable="false" id="loadingDlg"
showEffect="fade" modal="true" closable="false"> showEffect="fade" modal="true" closable="false">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment