Fixes 'second click' issue with further links toggler.
Apparently, magnificPopup does not like the click handler if the toggler is an a element, which we probably never noticed since all the other togglers used in the backend are buttons.
This commit is contained in:
parent
36b99d5651
commit
d82ed41f65
@ -997,19 +997,14 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Show further links
|
// Show further links
|
||||||
$('.toggle_links').click(function(e) {
|
{if $use_popups}
|
||||||
e.preventDefault();
|
$('.toggle_links').click(function(e) {
|
||||||
{if $use_popups}
|
e.preventDefault();
|
||||||
$('#s9y_links').toggleClass('mfp-hide');
|
$('#s9y_links').toggleClass('mfp-hide');
|
||||||
{else}
|
});
|
||||||
$(this).magnificPopup({
|
{else}
|
||||||
items: [{
|
$('.toggle_links').magnificPopup({ type: "inline" });
|
||||||
src: '#s9y_links',
|
{/if}
|
||||||
type: 'inline'
|
|
||||||
}]
|
|
||||||
});
|
|
||||||
{/if}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Media file actions
|
// Media file actions
|
||||||
{if $use_popups}
|
{if $use_popups}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user