mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-12 16:58:37 +00:00
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:
parent
2b191d8c37
commit
363bc4eb86
3 changed files with 13 additions and 2 deletions
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();
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue