diff --git a/zerobin/static/js/behavior.js b/zerobin/static/js/behavior.js index 362ef3c..df3b84f 100644 --- a/zerobin/static/js/behavior.js +++ b/zerobin/static/js/behavior.js @@ -458,29 +458,6 @@ if (content && key) { bar.container.show(); bar.set('Decrypting paste...', '25%'); - /* Pop up a form to enter an email address to quickly - send the encrypted link. */ - $('#email-link').click(function(e){ - e.preventDefault(); - var submitLink = $('', {'href':'#', 'class':'btn btn-small'}) - .attr('title', 'Starts a new email in your default client') - .html(""); - var emailInput = $('', { - 'type': 'text', - 'class': 'input-small', - 'placeholder': 'Email' - }).change(function(){ - var emailTxt = $(this).val(); - if(emailTxt) { - submitLink.attr('href', 'mailto:' + emailTxt + '?subject=0bin%20Message&body='+window.location.toString()); - } - }); - $('', {'class': 'form-inline'}) - .append(emailInput) - .append(submitLink) - .insertAfter($(this).hide()); - }); - zerobin.decrypt(key, content, /* On error*/ diff --git a/zerobin/views/paste.tpl b/zerobin/views/paste.tpl index c3183e5..3f4f766 100644 --- a/zerobin/views/paste.tpl +++ b/zerobin/views/paste.tpl @@ -24,7 +24,7 @@

Copy To Clipboard | Get short url | -  Email + Email