EDIT:
I didn't try, but replacing .submit()
by $(document).on('submit', '#share-popover', function() {});
should work, since the content was loaded after the dom was rendered, I couldn't use .submit() at that moment.
I don't really know why but replacing the .submit() method with another one fix the problem.
Here are the change I did :
<input id="search-value" type="text" placeholder="Book title, authors, isbn" class="share-input" name="search-value" onkeypress="return runScript(event)" />
function runScript(e) {
if (e.keyCode == 13) {
...
return false;
}
}