Ralf Becker
6f2a7ca40c
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:43 +00:00
Ralf Becker
12c308cd71
backport of several eT2 fixes from work on ranking / result-service app:
...
r52153: implement part attribute with values "header" and "footer" to put rows in thead or tfoot instead of tbody of table
r52163: stop etemplate_widget_template::instance from returning a stdClass object for a not found template after content-expanding, leading to a fatal error in etemplate_widget line 338
r52175: there should be no validation for disabled widgets
r52176: $cont is NOT root but current name-space in old eTemplate, leaving now identical $_cont for now
r52194: fixed eT2 data returned from client for case where name-space contains more then one component eg. "nm[rows]"
r52195: fixed not run validation on server-side for templates included via template tag
r52196: implement formatting of numbers in read-only widget
2015-03-18 22:16:15 +00:00
Ralf Becker
48fa4c1857
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 19:33:29 +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