Explorar el Código

Change URL on clone

Frédérik Paradis hace 14 años
padre
commit
7cb345001a
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      js/zerobin.js

+ 4 - 0
js/zerobin.js

@@ -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());
 }