Skip to content
Snippets Groups Projects
Commit 373b9516 authored by Julian Rother's avatar Julian Rother
Browse files

Made reloadonclose available on embed page

parent 76713ff1
No related branches found
No related tags found
No related merge requests found
...@@ -221,6 +221,18 @@ ...@@ -221,6 +221,18 @@
html: true 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> </script>
</body> </body>
</html> </html>
...@@ -131,18 +131,6 @@ $(function() { ...@@ -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() { $(document).ready(function() {
$("a.chapterlink").click(function () { $("a.chapterlink").click(function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment