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() {
ServerConnector.getServerBaseUrl = function() {
if (this._serverBaseUrl === undefined) {
var location = window.location;
this._serverBaseUrl = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '')
+ document.getElementById("authenticationForm:baseUrl").value;
var url = "" + window.location.href;
if (!url.endsWith("/")) {
url = url.substr(0, url.lastIndexOf("/")+1);
}
this._serverBaseUrl = url;
}
return this._serverBaseUrl;
};
......
......@@ -8,11 +8,6 @@
<h:outputStylesheet library="css" name="map.css"/>
<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">
<h:panelGroup layout="block" rendered ="#{not empty configurationMB.legendFile1}">
<img src="#{configurationMB.legendFile1}" alt="legend 1/4"/>
......@@ -31,13 +26,6 @@
<p:contextMenu id="contextMenu" model="#{exportMB.contextMenu}" />
<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">
<div id="overviewContainer" class="overviewContainerClass">
<div id="overviewDiv" class="overviewDivClass"></div>
......@@ -47,11 +35,6 @@
</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:inputHidden id="userMinColor" value="#{userMB.loggedUser.minColor}"/>
<h:inputHidden id="userMaxColor" value="#{userMB.loggedUser.maxColor}"/>
......@@ -63,12 +46,6 @@
<p:remoteCommand name="_sendReferenceGenomeDetailRequest" actionListener="#{referenceGenomeMB.requestJavasciptGenomeDetails}" />
</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 -->
<p:dialog header="Loading" widgetVar="loadingDlg" resizable="false" id="loadingDlg"
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