mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
ScrollTop when alert appear
This commit is contained in:
parent
7d1ec6dc28
commit
729aac96f5
@ -28,4 +28,4 @@ GROUP = None
|
||||
|
||||
# limit size of pasted text in bytes. Be carefull allowing too much size can slow down user's
|
||||
# browser
|
||||
MAX_SIZE = 1024 * 50
|
||||
MAX_SIZE = 1024 * 500
|
||||
|
@ -226,6 +226,8 @@ zerobin = {
|
||||
},
|
||||
message: function(type, message, title, flush, callback) {
|
||||
|
||||
$(window).scrollTop(0);
|
||||
|
||||
if (flush) {$('.alert-'+type).remove()}
|
||||
|
||||
$message = $('#alert-template').clone().attr('id', null)
|
||||
|
@ -42,9 +42,9 @@
|
||||
<a class="brand" href="/"><span>ø</span>bin<em>.net</em></a>
|
||||
<div class="nav-collapse">
|
||||
<ul class="nav">
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#download">Download 0bin</a></li>
|
||||
<li><a href="#faq">Faq</a></li>
|
||||
<li class="active"><a href="/">Home</a></li>
|
||||
<li><a href="https://github.com/sametmax/0bin">Download 0bin</a></li>
|
||||
<!-- <li><a href="#faq">Faq</a></li> -->
|
||||
</ul>
|
||||
<p class="navbar-text pull-right"><i>"A client side encrypted PasteBin..."</i></p>
|
||||
</div><!--/.nav-collapse -->
|
||||
|
Loading…
Reference in New Issue
Block a user