js: don't open popups on href="#" links (#18184)

This commit is contained in:
Frédéric Péters 2017-08-27 11:58:35 +02:00
parent 451418398c
commit 9a5c6095dd
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ var gadjo_js = gadjo_js || {};
var title_selector = $anchor.data('title-selector') || '#appbar h2';
var inplace_submit = $anchor.data('inplace-submit');
var modal = $anchor.data('modal');
if (url == '#') {
return false;
}
if (modal === undefined) {
modal = true;
}