Commit Graph

60 Commits

Author SHA1 Message Date
Ralf Becker
aa31a8705f fixing scope of "use strict", so we do not need to remove it when concatinating our scripts like we do now with minjs 2016-02-29 20:40:43 +00:00
Ralf Becker
b18d373624 fixing wired IE security errors "Permission denied", seems reload of opener caused references to egw and template cache in opener.top.etemplate2.prototype.templates becomming inaccessible, catching this errors and falling back to a window-local object 2015-10-26 21:13:34 +00:00
Nathan Gray
bc9a99a2af Avoid error in some cases where there is no readonly array manager yet 2015-09-16 15:46:17 +00:00
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
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
d06a8f1a77 allow all sort of expanded content in legacy options eg. ",1,${cont[nm][somevalue]}" 2015-05-02 19:35:16 +00:00
Nathan Gray
65a9b4c79c Avoid errors if getWidgetById() is called on a cleared widget / template 2014-12-03 00:16:39 +00:00
Nathan Gray
e674c5aa5b Partially revert r48812, seems it didn't help entry widgets but it did cause problems with preferences 2014-10-07 21:16:18 +00:00
Nathan Gray
aa6c36ba3f Work on app-entry widgets (contact-value) 2014-09-30 21:37:45 +00:00
Nathan Gray
bff821e300 Move special path handling from nextmatch up to top level so it can work for all widgets with a namespace and their own value 2014-05-27 20:16:02 +00:00
Nathan Gray
b4b1eee57a Expand what is accepted as a CSV for multi-select. Fixes Permanent time zone preference does not get saved. 2014-05-12 22:03:38 +00:00
Nathan Gray
ad3e1e5021 Cast legacy options to string, in case someone passed in a number or something.
Fixes error loading tracker configuration with queue other than all.
2014-04-02 14:43:23 +00:00
Ralf Becker
ac18b6cc8d changed et2_core_inheritance.js to implement ClassWithAttributes extending Class from egw_inheritance and changed et2 objects to use ClassWithAttributes when required (also fixed lots of IDE warnings / added docu) 2014-03-20 09:40:37 +00:00
Ralf Becker
f2e997d445 replace first parameter "%1" with "%s", to allow to use regular lang syntax as well as eTemplate one 2014-03-19 12:39:10 +00:00
Nathan Gray
9a7033ece9 Fix bug in calculating readonly based on parent. Fixes readonly templates still having editable content. 2014-02-27 21:26:10 +00:00
Ralf Becker
4036b268c9 missing docu to fix ide warnings 2014-01-29 17:11:11 +00:00
Ralf Becker
ace95f26b0 fixed not expanded onchange attribute, if widget type need to be expanded too, eg. log-viewer in CalDAV or eSync preferences 2014-01-27 21:59:29 +00:00
Ralf Becker
3a140463e8 fix invalid debug-level "warning", has to be "warn" 2014-01-21 14:39:51 +00:00
Nathan Gray
4d35323f52 - More checks for sub-template referred to by partial name
- Fix sub-template modifications missed if namespace mismatch
2013-10-16 23:16:29 +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
22b5ed587f Improve error message to make sure we get the error message 2013-10-10 12:32:34 +00:00
Ralf Becker
0163442f37 changed signature of on* event handlers: 1. event, 2. widget (context is DOM node), event handlers have now type "js" in attribute description and get automatic converted to a function, no more need to call et2_compileLegacyJS 2013-10-09 14:35:03 +00:00
Nathan Gray
17e8fa094d Support changing nextmatch template after initial load (ie: in get_rows callback) 2013-10-09 14:11:44 +00:00
Nathan Gray
f94d213a91 Add stack trace to problem widget report so we can actually track down the problem 2013-08-21 17:18:40 +00:00
Nathan Gray
f60fa14c30 Wrap loadingFinished() in a try / catch, so if one widget has problems it doesn't break the whole template. 2013-07-20 13:54:31 +00:00
Nathan Gray
a0b07635eb I can find no issues with attributes being objects, removing check & warning. 2013-07-05 15:03:49 +00:00
Nathan Gray
0285ea4b28 Avoid errors removing top-level widgets, check for parent property first 2013-05-29 18:57:48 +00:00
Nathan Gray
092493a065 Look for content / modifications inside the current name space as well, if the widget can create its own namespace 2013-05-22 18:13:37 +00:00
Ralf Becker
5eede4a8ef allow to use <widget type="${row}[type]"/> in xet files 2013-04-28 12:43:18 +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
48d6204f29 Skip blank legacy options sooner 2013-04-10 09:39:36 +00:00
Nathan Gray
e6cfe7a505 Accept modifications where the value evaluates to false 2013-03-25 21:46:18 +00:00
Nathan Gray
099252e327 Enable drop actions on tree widget 2013-02-15 15:52:49 +00:00
Nathan Gray
e094b35394 Get nextmatch_customfilter working 2013-02-07 14:36:19 +00:00
Nathan Gray
577c7acb6b Legacy options:
- Allow one content variable to contain multiple (all) legacy options
- If there are more options provided than legacy options expected, put the rest into the last legacy option
2013-02-06 08:03:13 +00:00
Nathan Gray
0828e3db75 Some documentation 2013-02-05 14:40:37 +00:00
Nathan Gray
bbfcb19ab8 Fix so namespaces work even without content data 2013-02-05 12:55:01 +00:00
Nathan Gray
e6ac48db13 Do not open an array perspective if the entry is null 2012-07-23 22:05:54 +00:00
Nathan Gray
73d49a957a Slightly better error message to help find the offender 2012-07-05 20:00:34 +00:00
Nathan Gray
725e8c25ac Prevent error if node is not set, just use the root's egw 2012-04-30 23:22:14 +00:00
Nathan Gray
f4fe3951c6 If legacy option is '', it's not set - use default 2012-03-26 23:28:35 +00:00
Nathan Gray
feacb3028f Expand / parse legacy options too 2012-03-21 22:54:25 +00:00
Nathan Gray
ffe2f1677b Don't overwrite current option (set from explicit attribute or content) with a legacy option 2012-03-15 21:56:19 +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
Nathan Gray
26c888ccd4 Encode square brackets and split names at ][, not just [ 2011-11-14 22:57:06 +00:00
Nathan Gray
b2eeab5b75 Fix typo breaking submits 2011-10-18 15:44:06 +00:00
Nathan Gray
be79886301 Add a warning if trying to set an attribute to an Object, so it doesn't just disappear 2011-10-06 23:04:40 +00:00
Nathan Gray
c9e4d6801d Add getPath() to core widget so widgets can override it 2011-10-06 16:33:55 +00:00