Commit Graph

16 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
6a0c7e2c3d log not compiling PHP expressions as warning, as they are most likely caused by wired content, eg. filenames containing a $ 2014-07-21 15:27:15 +00:00
Ralf Becker
5d3d61e5b0 only care for regular expression starting with /, as everything else is to ambigious eg. "replys[$row][reply_comment]" has a $ followed by an r, which is also first char of that expression 2014-06-11 07:59:45 +00:00
Ralf Becker
a45525949b implement clientside validation for textbox, stop complaining about $ in regular expressions of validator and fix attribute name from "preg" to "validator" on server-side 2014-06-05 15:47:23 +00:00
Ralf Becker
efa9c562bb allow expressions to end in a $ eg. in PHP "test$" is valid, no longer throwing an error if expression cant be parsed, just log the error and return expression literally 2014-02-14 09:03:12 +00:00
Ralf Becker
082f3242ee fix Syntax error while parsing "You can use $$start$$ for the above start date and $$end$$ for the end date." at 13, expected variable identifier and fixed IDE warnings 2014-02-12 19:32:34 +00:00
Nathan Gray
39c53c5530 Parse null values as string '' instead of 'null' to match PHP 2013-12-12 20:10:02 +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
a7654f7952 Avoid 'undefined' showing up in attributes when variable or value is missing 2012-06-12 19:53:51 +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
Nathan Gray
2ae94af14f Allow '#' in field names, for custom fields 2011-10-18 14:50:24 +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
b1223cb426 Expressions in the dataview-rows are now evaluated correctly 2011-09-07 16:59:23 +00:00
Andreas Stöckel
89304fca0c Fixed problem with whitespace being skipped 2011-09-07 16:35:34 +00:00
Andreas Stöckel
efc173cd2c Fixed problem with escaping and added a few test cases to the PHP->JS compiler 2011-09-07 16:31:32 +00:00
Andreas Stöckel
db074aa39c Added code which compiles PHP string expressions (like {[test]} ) into JavaScript functions. 2011-09-07 16:11:13 +00:00