File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
tethysapp/streamflow_prediction_tool
templates/streamflow_prediction_tool Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 "> ×</ 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 >
You can’t perform that action at this time.
0 commit comments