js: don't open popups on href="#" links (#18184)
This commit is contained in:
parent
451418398c
commit
9a5c6095dd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue