fix for Flash message not displaying in detached map

This commit is contained in:
Hallaathrad
2016-02-10 16:56:53 -05:00
parent 9913d8de92
commit b5fc216436
5 changed files with 10 additions and 3 deletions

View File

@ -974,8 +974,6 @@ code {
@media only screen and (min-width: 993px) { @media only screen and (min-width: 993px) {
.iframe-scroll { .iframe-scroll {
position: fixed !important;
margin-top: 75px;
z-index: 1; z-index: 1;
} }
} }

View File

@ -87,6 +87,13 @@
margin:25px 0; margin:25px 0;
} }
} }
.flashMessage {
position:fixed;
margin: 0 auto;
z-index: 2;
top: 160px;
width: 100%;
}
} }
.map-buttons { .map-buttons {

View File

@ -340,6 +340,7 @@ $(document).ready(function() {
} }
if (String(window.location).match(/\/map$/ig)) { if (String(window.location).match(/\/map$/ig)) {
$('body>.flashMessage').find('.alert').css('display', 'none');
$('.map-fixed-header').css('top', '50px'); $('.map-fixed-header').css('top', '50px');
} }

View File

@ -10,6 +10,7 @@ block content
span.input-group-addon span.input-group-addon
i.fa.fa-search i.fa.fa-search
hr hr
include ../partials/flash
#accordion.map-accordion #accordion.map-accordion
#noneFound No results found. Happy Coding! #noneFound No results found. Happy Coding!
for superBlock, index in superBlocks for superBlock, index in superBlocks

View File

@ -1,4 +1,4 @@
.row .row.flashMessage
.col-xs-12 .col-xs-12
if (messages.errors || messages.error) if (messages.errors || messages.error)
.alert.alert-danger.fade.in .alert.alert-danger.fade.in