From 9aec2fb5e728a37026adc0d5246e1cfe7d226cb9 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 9 Sep 2008 09:53:31 +0000 Subject: - fix typing error in index.tpl - added template smarty function known_script (e.g.{known_script id="x" src"y.js"}) - useful to avoid double inclusion of a script such as prototype,jquery,... when a template and plugin need it independently (see the use in admin.tpl for example) - removed unused themeconf.template_dir git-svn-id: http://piwigo.org/svn/trunk@2513 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/template/yoga/admin.tpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'admin/template/yoga/admin.tpl') diff --git a/admin/template/yoga/admin.tpl b/admin/template/yoga/admin.tpl index e1d30f36e..7aae91c39 100644 --- a/admin/template/yoga/admin.tpl +++ b/admin/template/yoga/admin.tpl @@ -1,4 +1,18 @@ {* $Id$ *} +{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} +{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js" } +{known_script id="jquery.ui.accordion" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.accordion.packed.js" } + + +