From 8c9fd0f636bf9743ad84b2877a03c7db4fe18dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Mon, 15 Aug 2011 12:34:00 +0000 Subject: [PATCH] Implemented usage of mutliple array-manager objects (the object which cares about proper namespacing etc.) for each supplied data manager part (like 'content', 'readonlys' etc.), renamed et2_contentArrayMgr.js to et2_arrayMgr.js, renamed et2_all.js to etemplate2.js and added an top-level object which cares about loading the template, creating the array managers etc. --- etemplate/inc/class.etemplate_new.inc.php | 22 +-- etemplate/js/et2_all.js | 27 ---- ...et2_contentArrayMgr.js => et2_arrayMgr.js} | 18 +-- etemplate/js/et2_common.js | 14 ++ etemplate/js/et2_inputWidget.js | 2 +- etemplate/js/et2_widget.js | 134 ++++++++++++------ etemplate/js/etemplate2.js | 97 +++++++++++++ etemplate/js/test/et2_test_expressions.json | 14 +- etemplate/js/test/et2_test_expressions.xet | 2 +- .../js/test/et2_test_timesheet_edit.json | 20 --- etemplate/js/test/test_xml.html | 35 ++--- 11 files changed, 231 insertions(+), 154 deletions(-) delete mode 100644 etemplate/js/et2_all.js rename etemplate/js/{et2_contentArrayMgr.js => et2_arrayMgr.js} (90%) create mode 100644 etemplate/js/etemplate2.js diff --git a/etemplate/inc/class.etemplate_new.inc.php b/etemplate/inc/class.etemplate_new.inc.php index d01af18174..71391a9905 100644 --- a/etemplate/inc/class.etemplate_new.inc.php +++ b/etemplate/inc/class.etemplate_new.inc.php @@ -92,7 +92,7 @@ class etemplate_new } else // first call */ { - egw_framework::validate_file('.','et2_all','etemplate'); + egw_framework::validate_file('.','etemplate2','etemplate'); egw_framework::includeCSS('/etemplate/js/test/test.css'); common::egw_header(); @@ -103,24 +103,8 @@ class etemplate_new echo '
+ @@ -16,7 +17,9 @@ - + + + @@ -28,7 +31,7 @@

EGroupware ETemplate2 Test

Choose one of the following tests: