File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,10 +255,7 @@ function send_data() {
255255 stateExistingPaste ( ) ;
256256 var url = scriptLocation ( ) + "?" + data . id + '#' + randomkey ;
257257 showStatus ( '' ) ;
258- $ ( 'div#pastelink' ) . html ( 'Your paste is <a href="' + url + '">' + url + '</a>' ) ;
259- $ ( 'div#pastelink' )
260- . append ( ' <button id="shortenbutton" onclick="document.location=\'' + shortenUrl ( url ) + '\'"><img src="img/icon_shorten.png" width="13" height="15" />Shorten URL</button>' )
261- . show ( ) ;
258+ $ ( 'div#pastelink' ) . html ( 'Your paste is <a href="' + url + '">' + url + '</a>' ) . show ( ) ;
262259 setElementText ( $ ( 'div#cleartext' ) , $ ( 'textarea#message' ) . val ( ) ) ;
263260 urls2links ( $ ( 'div#cleartext' ) ) ;
264261 showStatus ( '' ) ;
@@ -370,13 +367,6 @@ function showStatus(message, spin) {
370367 }
371368}
372369
373- /**
374- * Generate link to URL shortener.
375- */
376- function shortenUrl ( url ) {
377- return 'http://snipurl.com/site/snip?link=' + encodeURIComponent ( url ) ;
378- }
379-
380370/**
381371 * Convert URLs to clickable links.
382372 * URLs to handle:
You can’t perform that action at this time.
0 commit comments