Ralf Becker
f57b4580a5
reverting r53406, r53423: using JSON instead of XML for templates on client-side to improve IE performace, as it did not give any performance improvement
2015-08-20 14:57:18 +00:00
Ralf Becker
43afc55932
fix not working 2. loading of a popup in IE, caused by IE freeing the cached template in top window, working around that by a getter/setter method in top etemplate2 doing a clone when storing templates
2015-08-20 08:45:21 +00:00
Nathan Gray
ecb972ca66
Etemplate now uses JSON instead of XML for templates on the client side.
...
XML files are parsed into JSON objects on the server, then sent as JSON.
Etemplate parses the JSON object on the client side instead of the XML file directly. This is supposed to be faster for IE.
2015-08-18 17:47:40 +00:00
Ralf Becker
14cd9dfb34
fix sub-template of modified etemplate (WebDAV Url) wont work, as cache-buster / timestamp got added without download prefix, causing WebDAV to not find sub-template, because it treats everything but "?download" as part of URL
2015-03-24 10:52:14 +00:00
Ralf Becker
41671d733a
there should be no validation for disabled widgets
2015-03-17 22:00:54 +00:00
Ralf Becker
cf61d38137
share loaded eTemplates with iframes and popups, this way they dont need to load templates in same EGroupware session again (unless main window get reloaded), also adding now a cache-buster by default, if server dont supply one
2015-01-23 14:32:47 +00:00
Ralf Becker
026e93a0c4
use template base url from initial template, to continue using webdav, if that was loaded via webdav
2014-11-05 13:07:13 +00:00
Nathan Gray
5896c7e103
Use global template store directly, solves an error with loading sub-templates if they're not in the tree
2014-09-25 18:29:18 +00:00
Ralf Becker
ee97185b40
allow to specifiy optional cache-buster in template attribute ("?"+filemtime of template)
2014-03-12 17:42:29 +00:00
Nathan Gray
49a4554303
Add missing check for short form. Fixes broken addressbook organization view.
2014-02-25 16:17:41 +00:00
Ralf Becker
a021f998e0
fixed template was not prepending parent/top-level name, but search for first loaded template which ends in its name eg. "rows" used in "mail.sieve.index" picked "addressbook.index.rows" instead of "mail.sieve.index.rows"
2014-02-25 13:04:28 +00:00
Nathan Gray
10f3665853
If there is no template specified, resolve immediately
2013-10-17 15:23:33 +00:00
Nathan Gray
4002907c05
Use jQuery's Deferred to solve the deferred loading problem instead of load events.
2013-10-16 20:48:05 +00:00
Nathan Gray
1e8e86fe23
- More consistent firing of load event, so templates can be handled the same if the template has to be fetched or it's already there
...
- Caching of fetched templates in the instance manager
2013-10-09 17:14:59 +00:00
Nathan Gray
df660bea3c
Better handling of doLoadingFinished and firing load event:
...
- don't fire while still loading
- prevent trying to load children before template is actually loaded from file
2013-10-09 14:10:33 +00:00
Ralf Becker
0bb8093426
fixed translations on client-side: server sends now currentapp and langRequire to client, which uses that to translate phrases, langRequire is only stored in egw object for matching app-name and window!
2013-10-07 17:00:03 +00:00
Nathan Gray
3cfbcc8cf1
Trigger a load event when the template is loaded, to make it easier to work with the template when it is loaded from the server
2013-09-19 19:31:56 +00:00
Ralf Becker
b6013305f7
always replace dots with dashes in DOM id
2013-08-29 12:10:06 +00:00
Ralf Becker
020d6d9394
replace all .
2013-08-28 14:43:27 +00:00
Ralf Becker
a74795387e
replace . in template-ids with - to simplify css usage, as we do it the unique id already
2013-08-28 14:24:01 +00:00
Nathan Gray
4d13f3170f
Can't forget to reset the ID (template name), or it might not be able to load the template
2013-06-03 23:05:02 +00:00
Nathan Gray
aeeb3e9469
Silence one warning by providing an attribute definition
2013-05-29 19:08:00 +00:00
Nathan Gray
57d6132a37
Actually use template attribute when provided
2013-05-06 17:36:37 +00:00
Ralf Becker
e64c4fbd04
add some JSDoc so Eclipse shows an outline: @memberOf and @augments (not yet understood by Eclipse), also fixed many warnings (mostly missing semicolons)
2013-04-13 19:00:13 +00:00
Nathan Gray
cd0356219c
Add some missing attribute attributes
2013-04-09 07:22:35 +00:00
Nathan Gray
3142b9fd1f
Fix templates creating unwanted namespaces
2013-03-20 16:16:12 +00:00
Nathan Gray
9ae89a0844
Fix missing data in named sub-templates
2013-03-19 22:53:51 +00:00
Nathan Gray
bbfcb19ab8
Fix so namespaces work even without content data
2013-02-05 12:55:01 +00:00
Nathan Gray
0fa5e2ee49
Make sure there's a template name before requesting it from server
2012-07-23 23:51:47 +00:00
Nathan Gray
9365cf8363
Request unknown templates from the server
2012-07-09 21:29:02 +00:00
Nathan Gray
d44fed908c
Use correct debug tag - info does not exist
2012-06-18 22:44:00 +00:00
Nathan Gray
7e92918f9e
Add support for 'content' attribute, to create namespace for template using something other than its ID
2012-05-24 21:36:03 +00:00
Nathan Gray
11fe571e65
Instanciate the instance for the app based on template name when loading
2012-03-20 21:42:25 +00:00
Nathan Gray
0aa4c66803
Don't proxy template, just don't load it until asked for
2012-03-14 21:27:23 +00:00
Andreas Stöckel
049cbd88dc
Now using the etemplate code from the root instance (etemplate2.js acts as a egw api plugin); fixed egw.json plugins; fixed problem with 'instanceof Object', which does not work when sharing code over multiple windows
2012-03-06 13:22:01 +00:00
Andreas Stöckel
d310b14ecf
Client side API now supports modules which are instanciated per application or per window; removed et2_debug function from et2_core_common, now using corresponding API function.
2012-03-05 13:07:38 +00:00
Andreas Stöckel
14e6ceecb6
Integrated application specifig egw api into etemplate2 code
2012-03-02 10:44:56 +00:00
Andreas Stöckel
4440b4cd02
Fixed problem with rebuilding the template after a submit not working correctly
2012-03-01 10:13:12 +00:00
Nathan Gray
9b7cd5019c
Silence some messages about missing attribute attributes
2011-09-27 23:44:07 +00:00
Andreas Stöckel
53f4064cdc
Added some naming scheme to the js files
2011-08-24 10:18:07 +00:00