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
1 changed files with 1 additions and 11 deletions

View File

@ -255,10 +255,7 @@ function send_data() {
stateExistingPaste(); stateExistingPaste();
var url = scriptLocation() + "?" + data.id + '#' + randomkey; var url = scriptLocation() + "?" + data.id + '#' + randomkey;
showStatus(''); showStatus('');
$('div#pastelink').html('Your paste is <a href="' + url + '">' + url + '</a>'); $('div#pastelink').html('Your paste is <a href="' + url + '">' + url + '</a>').show();
$('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();
setElementText($('div#cleartext'), $('textarea#message').val()); setElementText($('div#cleartext'), $('textarea#message').val());
urls2links($('div#cleartext')); urls2links($('div#cleartext'));
showStatus(''); 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. * Convert URLs to clickable links.
* URLs to handle: * URLs to handle: