Skip to content

Commit 241c75a

Browse files
committed
Removed the shortening url service button.
1 parent 566dd1d commit 241c75a

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

js/zerobin.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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('&nbsp;&nbsp;<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:

0 commit comments

Comments
 (0)