dk_mmenu bekommt mit aktiviertem Mootools Probleme
Hallo zusammen,
für ein aktuelles Projekt nutze ich die Erweiterung: dk_mmenu, welche bekanntlich per Javascript läuft.
Neben Javascript bin ich auch auf ein Modul (Immobilienmanager) angewiesen, welches nur für Mootools erhältlich ist.
Das Problem:
Bei gleichzeitiger Verwendung von Mootools und Javascript, bekommt die Ausführung des dk_mmenus Probleme.
Wenn ich dort die Submenüs öffne, laufen diese mit Probleme.
Ansatz:
Das dk_mmenu habe ich im abgesicherten Modus laufen. Hier der Code:
Code:
<script type="text/javascript">
/* <![CDATA[ */
!(function($) {
var $mmenu = $('#<?php echo $this->cssIDonly; ?>');
$(document).ready(function() {
$mmenu.mmenu({
<?php
$oComma = $iComma = false; // o(uter)/i(nner) comma after option needed?
if ($this->isMenu) {
echo ($oComma == true ? ', ' : '') . $this->isMenu;
$oComma = true;
}
if ($this->classes) {
echo ($oComma == true ? ', ' : '') . 'classes: "' . $this->classes . '"';
$oComma = true;
}
if ($this->slidingSubmenus) {
echo ($oComma == true ? ', ' : '') . $this->slidingSubmenus;
$oComma = true;
}
// subobject 'counters' options
if ($this->countersAdd) {
if ($this->countersUpdate) {
echo ($oComma == true ? ', ' : '') . 'counters: { ';
echo $this->countersAdd;
echo ', ' . $this->countersUpdate;
echo ' }'; // end of subobject 'counters' options
} else {
echo ($oComma == true ? ', ' : '') . 'counters: true';
}
$oComma = true;
}
// subobject 'offCanvas' options
if ($this->offCanvas) {
if ($this->offCanvasModal || $this->offCanvasMoveBackground || $this->offCanvasPosition || $this->offCanvasZposition) {
echo ($oComma == true ? ', ' : '') . 'offCanvas: { ';
if ($this->offCanvasModal) {
echo ($iComma == true ? ', ' : '') . $this->offCanvasModal;
$iComma = true;
}
if ($this->offCanvasMoveBackground) {
echo ($iComma == true ? ', ' : '') . $this->offCanvasMoveBackground;
$iComma = true;
}
if ($this->offCanvasPosition) {
echo ($iComma == true ? ', ' : '') . $this->offCanvasPosition;
$iComma = true;
}
if ($this->offCanvasZposition) {
echo ($iComma == true ? ', ' : '') . $this->offCanvasZposition;
$iComma = true;
}
echo ' }'; // end of subobject 'offCanvas' options
$iComma = false; // reset inside subobject comma flag
$oComma = true;
}
} else {
echo ($oComma == true ? ', ' : '') . 'offCanvas: false';
$oComma = true;
}
// subobject 'searchfield' options
if ($this->searchfieldAdd) {
echo ($oComma == true ? ', ' : '') . 'searchfield: { ';
echo $this->searchfieldAdd;
if ($this->searchfieldSearch) {
echo ', ' . $this->searchfieldSearch;
}
if ($this->searchfieldPlaceholder) {
echo ', ' . $this->searchfieldPlaceholder;
}
if ($this->searchfieldNoResults) {
echo ', ' . $this->searchfieldNoResults;
}
if ($this->searchfieldShowLinksOnly) {
echo ', ' . $this->searchfieldShowLinksOnly;
}
echo ' }'; // end of subobject 'searchfield' options
$oComma = true;
}
// subobject 'dragOpen' options
if ($this->dragOpenOpen) {
echo ($oComma == true ? ', ' : '') . 'dragOpen: { ';
echo $this->dragOpenOpen;
if ($this->dragOpenThreshold) {
echo ', ' . $this->dragOpenThreshold;
}
if ($this->dragOpenMaxStartPos) {
echo ', ' . $this->dragOpenMaxStartPos;
}
echo ' }'; // end of subobject 'dragOpen' options
$oComma = true;
}
// subobject 'onClick' options
if ($this->onClickClose || $this->onClickBlockUI) {
echo ($oComma == true ? ', ' : '') . 'onClick: { ';
if ($this->onClickClose) {
echo ($iComma == true ? ', ' : '') . $this->onClickClose;
$iComma = true;
}
if ($this->onClickBlockUI) {
echo ($iComma == true ? ', ' : '') . $this->onClickBlockUI;
$iComma = true;
}
echo ' }'; // end of subobject 'onClick' options
$iComma = false; // reset inside subobject comma flag
$oComma = true;
}
?>
}, {
classNames: {
selected: "active"
}
}).removeClass('invisible');
});
})(jQuery)
/* ]]> */
</script>
Leider reicht dies nicht aus. Bin über jede Hilfestellung dankbar!
Grüße