Commit Graph

48 Commits

Author SHA1 Message Date
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
Nathan Gray
9b7cd5019c Silence some messages about missing attribute attributes 2011-09-27 23:44:07 +00:00
Nathan Gray
29501fc027 Add set_value() so selectbox can show current value 2011-09-26 16:01:42 +00:00
Nathan Gray
04f4287091 Declare variable before using it 2011-09-22 21:39:02 +00:00
Nathan Gray
390bb1f6f0 Get all button images working (in timesheet & infolog list at least) 2011-09-22 21:23:30 +00:00
Nathan Gray
0d47709ed1 Implement transformer changing type on client side by changing type while loading 2011-09-15 18:00:17 +00:00
Andreas Stöckel
87c0db7be1 Fixed correct expanding of names and implemented the dataProvider class 2011-09-08 18:36:09 +00:00
Andreas Stöckel
d037187234 Added code for creating widget-rows in the dataview 2011-09-05 14:35:28 +00:00
Nathan Gray
0dea78ab2e - Pull application name from template ID for image
- Use label as tooltip
- Apply CSS classes to image
2011-08-31 16:00:45 +00:00
Andreas Stöckel
ec5b162bfa Moved et2 core interfaces to own file; implemented Class.free which cares about calling 'destroy', removing all references the object may hold and rendering the object unusable after 'free' has been called; added 'getMem_freeMem_trace' which helps hunting down memory leaks with objects derriving from Class; added first implementation of the nextmatch widget - currently does nothing else but rendering the header and clicking on the nextmatch_sortheader labels 2011-08-25 13:35:53 +00:00
Andreas Stöckel
53f4064cdc Added some naming scheme to the js files 2011-08-24 10:18:07 +00:00