Permalink
Browse files

Firefox Mediabox fix

  • Loading branch information...
1 parent bda465e commit 6ca68fb0b146b6082c7735286310ddf6a828058c @Babelfisch Babelfisch committed Apr 10, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 system/modules/fe_editor/FrontendEditorHook.php
@@ -55,10 +55,14 @@ public function __construct()
{
$GLOBALS['TL_JAVASCRIPT'] = array('system/modules/fe_editor/html/js/fee.js');
}
-
+
global $objPage;
- $this->mediabox = ($objPage->outputFormat=='xhtml'?'rel':'data-lightbox').'="lightbox[external 980 700]"';
+ /*
+ $this->mediabox = ($objPage->outputFormat=='xhtml'?'rel':'data-lightbox').'="lightbox[external 980 700]"';
+ fix for Firefox
+ */
+ $this->mediabox = ($objPage->outputFormat=='xhtml'?'rel':'data-lightbox').'="lightbox 980 700"';
}
parent::__construct();
@@ -71,7 +75,7 @@ public function generatePageHook(Database_Result $objPage, Database_Result $objL
$mootools = unserialize($objLayout->mootools);
$mootools[] = 'moo_mediabox';
$mootools = array_unique($mootools);
-
+
$objLayout->mootools = serialize($mootools);
}
}

0 comments on commit 6ca68fb

Please sign in to comment.