diff --git a/css/style.css b/css/style.css index 4a390fd..a1bfc38 100644 --- a/css/style.css +++ b/css/style.css @@ -133,8 +133,11 @@ footer { -moz-user-select: text; } #message { + position: absolute; + margin: 10px 46px; /* 10 + 26 + 10 */ z-index: 3000; font-size: 1rem; + cursor: auto; } #profile_buttons { @@ -248,10 +251,6 @@ https://css-tricks.com/svg-line-animation-works/ padding: 2px 15px; } -#message .alert { - margin: 10px 46px; /* 10 + 26 + 10 */ -} - #profile_message .alert { margin-top: 3px; } diff --git a/js/control/Message.js b/js/control/Message.js index 7bdabad..4085cd0 100644 --- a/js/control/Message.js +++ b/js/control/Message.js @@ -15,6 +15,8 @@ BR.Message = L.Class.extend({ iconClass = (type === 'warning') ? 'fa-exclamation-triangle' : 'fa-times-circle', alertClass = (type === 'warning') ? 'alert-warning' : 'alert-danger'; + L.DomEvent.disableClickPropagation(ele); + ele.innerHTML = '