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

View file

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