Change URL on clone

This commit is contained in:
Frédérik Paradis 2012-05-10 14:35:33 -04:00 committed by Simon Rupf
parent d247bff897
commit 7cb345001a
1 changed files with 4 additions and 0 deletions

View File

@ -328,6 +328,10 @@ function stateExistingPaste() {
*/
function clonePaste() {
stateNewPaste();
//Erase the id and the key in url
history.replaceState(document.title, document.title, scriptLocation());
showStatus('');
$('textarea#message').text($('div#cleartext').text());
}