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:
parent
abaee22924
commit
12276d9ff2
@ -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');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user