From 3768c71922a5cd82f578155f18ad5fdc34076be0 Mon Sep 17 00:00:00 2001 From: max Date: Sun, 29 Apr 2012 01:09:51 +0700 Subject: [PATCH] added clone option --- static/js/behavior.js | 4 ++-- views/paste.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/behavior.js b/static/js/behavior.js index 20771fa..2dfe441 100644 --- a/static/js/behavior.js +++ b/static/js/behavior.js @@ -177,9 +177,9 @@ $('.btn-clone').click(function(e){ content_clone = content_clone + $(this).text() + '\n'; }); $('.submit-form').show(); - $('.paste-form').hide(); + $('.paste-form').remove(); $('#content').val(content_clone); - $('#content').resize(); + $('#content').trigger('change'); }); diff --git a/views/paste.tpl b/views/paste.tpl index 4db2b73..bfbf9f0 100644 --- a/views/paste.tpl +++ b/views/paste.tpl @@ -20,7 +20,7 @@ Download - +