Procházet zdrojové kódy

Removed the shortening url service button.

Sebastien SAUVAGE před 14 roky
rodič
revize
241c75a5d5
1 změnil soubory, kde provedl 1 přidání a 11 odebrání
  1. 1 11
      js/zerobin.js

+ 1 - 11
js/zerobin.js

@@ -255,10 +255,7 @@ function send_data() {
                 stateExistingPaste();
                 var url = scriptLocation() + "?" + data.id + '#' + randomkey;
                 showStatus('');
-                $('div#pastelink').html('Your paste is <a href="' + url + '">' + url + '</a>');
-                $('div#pastelink')
-                    .append('&nbsp;&nbsp;<button id="shortenbutton" onclick="document.location=\'' + shortenUrl(url) + '\'"><img src="img/icon_shorten.png" width="13" height="15" />Shorten URL</button>')
-                    .show();
+                $('div#pastelink').html('Your paste is <a href="' + url + '">' + url + '</a>').show();
                 setElementText($('div#cleartext'), $('textarea#message').val());
                 urls2links($('div#cleartext'));
                 showStatus('');
@@ -370,13 +367,6 @@ function showStatus(message, spin) {
     }
 }
 
-/**
- * Generate link to URL shortener.
- */
-function shortenUrl(url) {
-    return 'http://snipurl.com/site/snip?link=' + encodeURIComponent(url);
-}
-
 /**
  * Convert URLs to clickable links.
  * URLs to handle: