From b6309e0244838a56c3f8b0f13800a90cba5256f0 Mon Sep 17 00:00:00 2001 From: max Date: Sun, 29 Apr 2012 01:18:05 +0700 Subject: [PATCH] added clone option --- static/js/behavior.js | 2 +- views/paste.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/behavior.js b/static/js/behavior.js index 1bee0ad..fa3e8d2 100644 --- a/static/js/behavior.js +++ b/static/js/behavior.js @@ -175,7 +175,7 @@ $('.previous-pastes .items').html(zerobin.get_pastes()); /* clone a paste */ $('.btn-clone').click(function(e){ e.preventDefault(); - content_clone = '' ; + var content_clone = '' ; $("#paste-content li").each(function(index) { content_clone = content_clone + $(this).text() + '\n'; }); diff --git a/views/paste.tpl b/views/paste.tpl index eb43dae..028c4d5 100644 --- a/views/paste.tpl +++ b/views/paste.tpl @@ -17,7 +17,7 @@ The paste is now in your clipboad -
+

@@ -38,7 +38,7 @@

- +