Only fire toggle_links handler in dashboard.

This commit is contained in:
Matthias Mees 2013-10-05 10:56:26 +02:00
parent 0c80e7afaf
commit 80cfa7e736

View File

@ -1002,12 +1002,16 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
// Show further links
{if $use_popups}
$('.toggle_links').click(function(e) {
e.preventDefault();
$('#s9y_links').toggleClass('mfp-hide');
});
if($('body').has('#dashboard').size() > 0) {
$('.toggle_links').click(function(e) {
e.preventDefault();
$('#s9y_links').toggleClass('mfp-hide');
});
}
{else}
$('.toggle_links').magnificPopup({ type: "inline" });
if($('body').has('#dashboard').size() > 0) {
$('.toggle_links').magnificPopup({ type: "inline" });
}
{/if}
// Media file actions