Skip to content

Commit

Permalink
Alpha test fix - item #7 - hide the showNegativeData link on the heat…
Browse files Browse the repository at this point in the history
…map tab.
  • Loading branch information
JoelRichardson committed Dec 17, 2024
1 parent c5d69df commit e9d3a58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/jsp/gxd/gxd_query.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ body.yui-skin-sam div#outerGxd {position:relative;}
<div class="summaryControl" style="display:none;">
<div id="resultbar" class="goldbar">Results</div>
<%@ include file="/WEB-INF/jsp/gxd/gxd_summary.jsp" %>
<div id="nowhereElseMessage" style="display:none; width:900px"></div>
<div id="showNegativeDataMessage" style="display:none; width:900px"></div>
</div>

<script type="text/javascript">
Expand Down
16 changes: 9 additions & 7 deletions src/main/webapp/js/gxd_summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,9 @@ function buildSummary(request,tabState)
else if (dataTableInitFunction) {
loadDatatable(dataTableInitFunction,request);
// not showing a grid, so hide the "nowhere else" message (that applies only to the grids)
$('#nowhereElseMessage').hide();
$('#showNegativeDataMessage').hide();
} else {
$('#showNegativeDataMessage').hide();
}
showPaginators();
}
Expand Down Expand Up @@ -745,7 +747,7 @@ function clickNotDetectedFilter(retries) {
// programmatically select the 'Detected' filter, choose the 'No' option, and apply it
function addNotDetectedFilter() {
// hide the grid-specific message
$('#nowhereElseMessage').css('display', 'none');
$('#showNegativeDataMessage').hide()

// click to bring up the filter box, then wait for it to appear
$('#detectedFilter')[0].click();
Expand All @@ -764,10 +766,10 @@ function showGridMessage(message, request) {
}
}
if (showIt) {
$('#nowhereElseMessage').html(message);
$('#nowhereElseMessage').css('display', 'block');
$('#showNegativeDataMessage').html(message);
$('#showNegativeDataMessage').show()
} else {
$('#nowhereElseMessage').css('display', 'none');
$('#showNegativeDataMessage').hide()
}
}
);
Expand All @@ -781,7 +783,7 @@ function showNowhereElseMessage(request, matrixType) {
var resultCount = YAHOO.util.Dom.get("totalResultsCount").innerHTML;

// turn the message off by default, and only display it if appropriate
$('#nowhereElseMessage').css('display', 'none');
$('#showNegativeDataMessage').hide()

// parse request for a valid profile structure combined with "Not Detected"
var hasNegStructure = false;
Expand Down Expand Up @@ -949,7 +951,7 @@ function refreshTabCounts()
YAHOO.util.Dom.get("totalResultsCount").innerHTML = commaDelimit(o.responseText);
// if no results, we don't need the grid-specific message for 'nowhere else' queries
if (parseInt(o.responseText) == 0) {
$('#nowhereElseMessage').css('display', 'none');
$('#showNegativeDataMessage').hide();
}

resultsCount = parseInt(o.responseText);
Expand Down

0 comments on commit e9d3a58

Please sign in to comment.