1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Flushing tinyurl success message before posting the next one

This commit is contained in:
sam 2012-05-01 22:57:48 +07:00
parent abaee22924
commit 12276d9ff2

View File

@ -222,7 +222,7 @@ zerobin = {
message: function(type, message, title, flush, callback) {
$(window).scrollTop(0);
if (flush) {$('.alert-'+type).remove()}
$message = $('#alert-template').clone().attr('id', null)
@ -377,7 +377,7 @@ if (content && key) {
$('#copy-success').hide();
zerobin.message('success',
'<a href="' + tinyurl + '">' + tinyurl + '</a>',
'Short url'
'Short url', true
)
$('#short-url').text('Get short url');
});