Removed the shortening url service button.
This commit is contained in:
parent
566dd1d05f
commit
241c75a5d5
|
@ -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(' <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:
|
||||||
|
|
Loading…
Reference in New Issue