forked from wallabag/wallabag
Add a autoclose parameters. When we use sharing method in plugins like the tiny tiny rss one or the firefox plugins we can passe the autoclose=true parameters that close the popup.
This commit is contained in:
6
themes/default/js/autoClose.js
Normal file
6
themes/default/js/autoClose.js
Normal file
@ -0,0 +1,6 @@
|
||||
$(document).ready(function() {
|
||||
current_url = window.location.href
|
||||
if (current_url.match("&autoclose=true")) {
|
||||
window.close();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user