Removed the shortening url service button.

This commit is contained in:
Sebastien SAUVAGE 2012-04-24 14:29:16 +02:00
parent 566dd1d05f
commit 241c75a5d5

View File

@ -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: