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:
Matthias Mees 2013-10-05 08:26:26 +02:00
parent 36b99d5651
commit d82ed41f65

View File

@ -997,19 +997,14 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
});
// Show further links
$('.toggle_links').click(function(e) {
e.preventDefault();
{if $use_popups}
{if $use_popups}
$('.toggle_links').click(function(e) {
e.preventDefault();
$('#s9y_links').toggleClass('mfp-hide');
{else}
$(this).magnificPopup({
items: [{
src: '#s9y_links',
type: 'inline'
}]
});
{/if}
});
});
{else}
$('.toggle_links').magnificPopup({ type: "inline" });
{/if}
// Media file actions
{if $use_popups}