[fix] Modal & messages: Better position & scrolling.

This commit is contained in:
opi 2014-05-16 12:37:24 +02:00
parent 413b490bf8
commit 296d0937ff
4 changed files with 11 additions and 7 deletions

View file

@ -187,10 +187,13 @@ body {
#popup { #popup {
.modal; .modal;
.fade; .fade;
.modal-dialog;
.modal-content;
overflow-y: auto; overflow-y: auto;
& > div {
.modal-dialog;
.modal-content;
}
#popup-title { #popup-title {
.modal-header; .modal-header;
.modal-title; .modal-title;

2
css/style.min.css vendored

File diff suppressed because one or more lines are too long

View file

@ -37,10 +37,10 @@
</div> </div>
<div id="popup" role="dialog"> <div id="popup" role="dialog"><div>
<h2 id="popup-title"></h2> <h2 id="popup-title"></h2>
<div id="popup-body"></div> <div id="popup-body"></div>
</div> </div></div>
<script type="text/javascript" src="js/vendor/jquery-1.10.1.min.js"></script> <script type="text/javascript" src="js/vendor/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/vendor/handlebars-v1.3.0.js"></script> <script type="text/javascript" src="js/vendor/handlebars-v1.3.0.js"></script>

View file

@ -81,6 +81,7 @@ app = Sammy('#main', function (sam) {
}); });
} }
$('#flash').html(html).fadeIn(); $('#flash').html(html).fadeIn();
document.body.scrollTop = document.documentElement.scrollTop = 0;
}, },
// API connection helper // API connection helper