From e4cc8f0c38f29c00ba431b1ab1a6aaef6867f352 Mon Sep 17 00:00:00 2001 From: nbm Date: Thu, 1 Dec 2005 19:48:45 +0000 Subject: [PATCH] Use the requireJS* and requireCSS* API to add JS and CSS. --- templates/ktcore/manage_help_item.smarty | 7 ++++--- templates/ktcore/metadata/conditional/editcomplex.smarty | 28 ++++++++++++++-------------- templates/ktcore/widget_fieldset_conditional.smarty | 19 ++++++++----------- 3 files changed, 26 insertions(+), 28 deletions(-) diff --git a/templates/ktcore/manage_help_item.smarty b/templates/ktcore/manage_help_item.smarty index bc6d1c0..963e1b8 100644 --- a/templates/ktcore/manage_help_item.smarty +++ b/templates/ktcore/manage_help_item.smarty @@ -1,12 +1,13 @@ - - +{/capture} +{$context->oPage->requireJSStandalone($sJS)}
diff --git a/templates/ktcore/metadata/conditional/editcomplex.smarty b/templates/ktcore/metadata/conditional/editcomplex.smarty index 348267b..cbc96b9 100644 --- a/templates/ktcore/metadata/conditional/editcomplex.smarty +++ b/templates/ktcore/metadata/conditional/editcomplex.smarty @@ -1,5 +1,5 @@ +{capture assign=sCSS} {literal} - +{/literal} +{/capture} +{$context->oPage->requireCSSStandalone($sCSS)} - - - - - +{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/Base.js")} +{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/Iter.js")} +{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/DateTime.js")} +{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/Async.js")} +{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/DOM.js")} - - +{$context->oPage->requireJSResource("presentation/lookAndFeel/knowledgeTree/js/taillog.js")} +{$context->oPage->requireJSResource("presentation/lookAndFeel/knowledgeTree/js/conditional_complex_edit.js")} - - -{/literal} +{/capture} +{$context->oPage->requireJSStandalone($sJS)}

Edit Complex Conditional Metadata

diff --git a/templates/ktcore/widget_fieldset_conditional.smarty b/templates/ktcore/widget_fieldset_conditional.smarty index 2847655..76a8419 100644 --- a/templates/ktcore/widget_fieldset_conditional.smarty +++ b/templates/ktcore/widget_fieldset_conditional.smarty @@ -1,12 +1,10 @@ - +{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/Base.js")} +{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/Iter.js")} +{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/DOM.js")} +{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/Async.js")} - - - - +{capture assign=sJS} {literal} - {/literal} +{/capture} +{$context->oPage->requireJSStandalone($sJS)} + -- libgit2 0.21.4