fix calendar-planer SiteMgr block to working with Mambo templates like (javascript free) simple_plain

This commit is contained in:
Ralf Becker 2016-06-25 12:28:52 +02:00
parent 1a27a7b840
commit 381b9fa1a4
2 changed files with 6 additions and 6 deletions

View File

@ -90,7 +90,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
init: function()
{
// categories have nothing to do with calendar, but eT2 objects loads calendars app.js
if (framework && framework.applications.calendar.browser &&
if (window.framework && framework.applications.calendar.browser &&
framework.applications.calendar.browser.currentLocation.match('menuaction=preferences\.preferences_categories_ui\.index'))
{
this._super.apply(this, arguments);

View File

@ -344,14 +344,14 @@ class module_calendar_planner extends Module
)).');'
. '});});'
. '</script>';
ob_end_clean();
}
else
{
$html .= '<div class="message" align="center">'.lang('No owner selected').'</div>';
}
while(@ob_end_clean());
return $html;
}
}