Commit 373b9516 authored by Julian Rother's avatar Julian Rother
Browse files

Made reloadonclose available on embed page

parent 76713ff1
......@@ -221,6 +221,18 @@
html: true
});
});
$(document).on("click","a.reloadonclose",function () {
var popup = window.open(this.href, this.target);
if (!popup)
return true;
var popup_check = setInterval(function() {
if (popup.closed) {
clearInterval(popup_check);
location.reload();
};
}, 500);
return false;
});
</script>
</body>
</html>
......@@ -131,18 +131,6 @@ $(function() {
})
});
$(document).on("click","a.reloadonclose",function () {
var popup = window.open(this.href, this.target);
if (!popup)
return true;
var popup_check = setInterval(function() {
if (popup.closed) {
clearInterval(popup_check);
location.reload();
};
}, 500);
return false;
});
$(document).ready(function() {
$("a.chapterlink").click(function () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment