mirror of https://github.com/wallabag/wallabag.git
use 2 seprate variable for autoclosing windows to avoid to quick closing when sharing, the popup can be close before the link is save
This commit is contained in:
parent
363bc4eb86
commit
f616ab60ef
|
@ -361,7 +361,7 @@ class Poche
|
||||||
if ($autoclose == TRUE) {
|
if ($autoclose == TRUE) {
|
||||||
Tools::redirect('?view=home');
|
Tools::redirect('?view=home');
|
||||||
} else {
|
} else {
|
||||||
Tools::redirect('?view=home&autoclose=true');
|
Tools::redirect('?view=home&closewin=true');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
current_url = window.location.href
|
current_url = window.location.href
|
||||||
if (current_url.match("&autoclose=true")) {
|
if (current_url.match("&closewin=true")) {
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue