Permalink
Browse files

GDP-734 more clear description of "advanced portal" and disabled butt…

…on to tell what to do.
  • Loading branch information...
1 parent 508e8f7 commit 970f7b8d1ac552c2d3ac7798f55f500841723222 @jiwalker-usgs jiwalker-usgs committed Feb 21, 2014
Showing with 9 additions and 1 deletion.
  1. +6 −1 gdp-ui-landing/src/main/webapp/index.jsp
  2. +3 −0 gdp-ui-landing/src/main/webapp/js/ui.js
@@ -127,6 +127,11 @@
<div id="row-proceed" class="row text-center">
<button id="btn-proceed" class="btn btn-success">Process Data with the Geo Data Portal</button>
</div>
+ <div id="row-proceed-placeholder" class="row text-center">
+ <button id="btn-proceed-placeholder" class="btn btn-default disabled" disabled="disabled">
+ Select a dataset and processing type to use with the Geo Data Portal
+ </button>
+ </div>
<div class="row">
<div class="well">
@@ -151,7 +156,7 @@
interest a simple and efficient task.
</p>
<p class="text-center">
- <a href="<%= props.getProperty("gdp.endpoint.gdp", "/gdp/client/")%>?development=true" target="_blank">Use the advanced Geo Data Portal interface to specify a custom dataset.</a>
+ <a href="<%= props.getProperty("gdp.endpoint.gdp", "/gdp/client/")%>?development=true" target="_blank">Geo Data Portal interface for developers and advanced users. Most users should select a dataset and processing type above.</a>
</p>
</div>
</div>
@@ -265,12 +265,14 @@ GDP.UI = function (args) {
isDatasetChosen,
datasetDropdown = $('#form-control-select-csw'),
proceedRow = $('#row-proceed'),
+ proceedRowPlaceholder = $('#row-proceed-placeholder'),
fullInfoLink = $('#view-full-info-link'),
contentContainer = $('#p-csw-information-content'),
titleContainer = $('#p-csw-information-title');
if (!value) {
proceedRow.fadeOut();
+ proceedRowPlaceholder.fadeIn();
titleContainer.html('');
contentContainer.html('');
} else {
@@ -303,6 +305,7 @@ GDP.UI = function (args) {
);
if (datasetDropdown.val() && me.isProcessingButtonSelected()) {
+ proceedRowPlaceholder.fadeOut();
proceedRow.fadeIn();
me.bindProceedButton();
}

0 comments on commit 970f7b8

Please sign in to comment.