Skip to content

Commit 14ed187

Browse files
author
Alan D. Snow
committed
made info message dismissible and made map bottom padding 0 when dismissed
1 parent b5a53c0 commit 14ed187

File tree

2 files changed

+8
-1
lines changed
  • tethysapp/streamflow_prediction_tool

2 files changed

+8
-1
lines changed

tethysapp/streamflow_prediction_tool/public/js/map.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,7 @@ var ERFP_MAP = (function() {
11531153
//FUNCTION: Loads Hydrograph from Selected feature
11541154
loadHydrographFromFeature = function(selected_feature, from_units_toggle) {
11551155
$('.intro_message').addClass('hidden');
1156+
$('#app-content-wrapper #app-content').css('padding-bottom', 0);
11561157
//check if old ajax call still running
11571158
if(!isNotLoadingPastRequest()) {
11581159
//updateInfoAlert
@@ -2237,6 +2238,11 @@ var ERFP_MAP = (function() {
22372238
});
22382239
});
22392240

2241+
//remove space at bottom when message dismissed
2242+
$("#close_map_intro_message").click(function() {
2243+
$('#app-content-wrapper #app-content').css('padding-bottom', 0);
2244+
});
2245+
22402246
//init tooltip
22412247
$('.boot_tooltip').tooltip();
22422248

tethysapp/streamflow_prediction_tool/templates/streamflow_prediction_tool/map.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949

5050

5151
{% block app_content %}
52-
<div class="alert alert-info intro_message" role="alert">
52+
<div class="alert alert-info alert-dismissible intro_message" role="alert">
53+
<button id="close_map_intro_message" type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
5354
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
5455
Zoom in and click on a river segment or search by river ID to view predictions.
5556
</div>

0 commit comments

Comments
 (0)