From 34ad997e035caf5a62c3fcd7647a1e0ec41b8b7f Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 30 Nov 2009 10:33:05 -0500 Subject: [PATCH] Don't show the map tab if no map support is present, and don't attempt to load any map related javascript. --- kronolith/index.php | 4 +++- kronolith/templates/index/edit.inc | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 @@
  • +
  • +
    -- 2.11.0