From 12276d9ff274c4a9d3bb2622c81b0ab43e1ed727 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 1 May 2012 22:57:48 +0700 Subject: [PATCH] Flushing tinyurl success message before posting the next one --- static/js/behavior.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/behavior.js b/static/js/behavior.js index a206844..6d94a7d 100644 --- a/static/js/behavior.js +++ b/static/js/behavior.js @@ -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', '' + tinyurl + '', - 'Short url' + 'Short url', true ) $('#short-url').text('Get short url'); });