|
@@ -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')
|
|
|
|
|
- .append(' <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());
|
|
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:
|