From: Michael J. Rubinsky Date: Mon, 30 Nov 2009 15:33:05 +0000 (-0500) Subject: Don't show the map tab if no map support is present, and don't X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=34ad997e035caf5a62c3fcd7647a1e0ec41b8b7f;p=horde.git Don't show the map tab if no map support is present, and don't attempt to load any map related javascript. --- diff --git a/kronolith/index.php b/kronolith/index.php index cd074bbb4..c7470765e 100644 --- a/kronolith/index.php +++ b/kronolith/index.php @@ -31,7 +31,9 @@ echo "\n"; require KRONOLITH_TEMPLATES . '/index/index.inc'; Horde::includeScriptFiles(); Horde::outputInlineScript(); -Kronolith::initEventMap($conf['maps']); +if ($conf['maps']['driver']) { + Kronolith::initEventMap($conf['maps']); +} $notification->notify(array('listeners' => array('javascript'))); $tac = Horde_Ajax_Imple::factory(array('kronolith', 'TagAutoCompleter'), array('triggerId' => 'kronolithEventTags', 'box' => 'kronolithEventACBox', 'pretty' => true)); $tac->attach(); diff --git a/kronolith/templates/index/edit.inc b/kronolith/templates/index/edit.inc index a6bf4f45b..41b517a82 100644 --- a/kronolith/templates/index/edit.inc +++ b/kronolith/templates/index/edit.inc @@ -52,7 +52,9 @@
  • +
  • +