diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js
index c832e9732..fc9ba198a 100644
--- a/src/static/js/pad_editbar.js
+++ b/src/static/js/pad_editbar.js
@@ -297,13 +297,13 @@ var padeditbar = (function()
{
var basePath = document.location.href.substring(0, document.location.href.indexOf("/p/"));
var readonlyLink = basePath + "/p/" + clientVars.readOnlyId;
- $('#embedinput').val('');
+ $('#embedinput').val('');
$('#linkinput').val(readonlyLink);
}
else
{
var padurl = window.location.href.split("?")[0];
- $('#embedinput').val('');
+ $('#embedinput').val('');
$('#linkinput').val(padurl);
}
},