Ralf Becker
a58a358011
process js_pseudo_funcs in onchange of date-widget
2012-03-18 14:42:04 +00:00
Ralf Becker
90e8092570
fixing the fix ..., good that new etemplate2 always uses csv_explode
2012-03-17 14:18:56 +00:00
Ralf Becker
03c21735e6
use csv_split on options of text field, to allow to enclose preg in quote to allow comma in it
2012-03-17 13:42:01 +00:00
Ralf Becker
c4b9038719
fixed no more notifications send, if notification of group-members is NOT enabled
2012-03-13 15:48:42 +00:00
Ralf Becker
5083ea1add
fixed nm_active_link, to also active links, not only onclick handlers
2012-03-13 11:06:45 +00:00
Ralf Becker
6e6aacb5a0
using mime-registry for link-widget "link-list" and "link-string" too
2012-03-09 07:45:31 +00:00
Ralf Becker
f41d998e54
* Filemanager/FMail/Calendar: allow to open .eml and .ics files from filemanager in fmail or calendar (infrastructure for apps to register which mime-types they can open)
2012-03-08 18:45:18 +00:00
Andreas Stöckel
36f9cc2f6a
Backported commit 38270 from trunk, concatenated dhtmlxmenu and dhtmlxmenu_ext
2012-03-07 10:39:23 +00:00
Nathan Gray
8af34bfef8
* ProjectManager - Filter elements by app
2012-03-06 15:23:34 +00:00
Ralf Becker
94544812c9
new method preferences->default_prefs($app=null,$name=null) to access default prefs, taking into account forced preferences
2012-03-01 20:59:16 +00:00
Nathan Gray
604d391537
* Infolog - Preferences to receive notification as member of owner group of Infolog Type
2012-02-27 21:28:55 +00:00
Nathan Gray
41ecce19ac
When merging into a spreadsheet document, convert dates into SS dates
...
r38021: Fix typo in Excel date processing
r38111: Fix spreadsheet date/time formatting issue - incorrect parsing of users timer38167: Fix for empty spreadsheet dates in XML & OO.o getting a date anyway
2012-02-27 15:21:21 +00:00
Ralf Becker
57206cbac3
white-space: nowrap for table in date-widget
2012-02-23 13:40:26 +00:00
Ralf Becker
f83794bc83
* Notifications: fixed not correctly reset timezone after notifying users from other timezones
2012-02-22 12:33:15 +00:00
Ralf Becker
fdc4134556
allow to force tooltip for help messages by prepending a pipe "|" character
2012-02-19 13:55:24 +00:00
Ralf Becker
32bc243464
Restore all eTemplates from distirbution file via eTemplate editor (no need to touch distribution file or fiddle with the database)
2012-02-15 14:52:52 +00:00
Ralf Becker
ab84acc81f
fixed several small issues around CardDAV and history logging in addressbook (dont log not set custom fields as there are not stored and therefore not changed)
2012-02-10 21:30:48 +00:00
Ralf Becker
3dc0e31fa9
* InfoLog/CalDAV: store unsupported iCal properties like custom fields incl. history logging, thought they are not displayed unless you explicitly add a custom field from them (prefixed with one #)
...
r37832: fixed fatal error calling widgetExists on a non-object
r37837: storing unsupported (valarm-)components like unsupported (X-)properties
r37854: need to load custom fields now allways, as x-props and unsupported components are stored there
2012-02-10 10:39:27 +00:00
Ralf Becker
4e2c48bae9
fix for integer input with negative length, to get readonly input field, fixes html5 not setting size/width commit
2012-02-01 17:33:04 +00:00
Nathan Gray
7492d9c7cb
When merging styles, handle <b>, <i> in addition to <strong>,<em>
2012-02-01 16:35:08 +00:00
Klaus Leithoff
c80f548999
- Re-arrange HTML tag order to account for simplistic newline handling (broke nested tags); - If unable to load/parse content after trying to convert HTML styles into target document styles, fall back and try again, but strip all tags this time.
2012-02-01 10:27:32 +00:00
Ralf Becker
ff48c36d5f
* Addressbook: preference to open EMail addresses in external mail program, even if user has access to EMail app
2012-01-13 05:25:43 +00:00
Ralf Becker
3f9d70a484
automatic conversation of not set DB timestamps returned by MySQL as "0000-00-00 00:00:00" to null
2012-01-11 01:07:18 +00:00
Ralf Becker
ecd6e7ecd1
* Addressbook: show calendar of contact(s) as list-view with date-filter "all" via context menu
...
r37667: ability to open nm_action=location in a given targetapp tab, plus documentation
2012-01-09 22:09:11 +00:00
Nathan Gray
d616b36e9f
Fix missing infolog custom fields in contact view
2012-01-09 17:36:38 +00:00
Nathan Gray
e843208353
Add mergeprint tag for links to a specified application: links/appname
2012-01-06 17:57:16 +00:00
Klaus Leithoff
bfd333b0c2
Limit custom field app entry possibilities to apps that support query and title, which are required for custom field to work properly
2012-01-06 15:34:47 +00:00
Ralf Becker
494a3af78f
html5 input type=nummeric seems to ignore size, setting a width instead
2012-01-05 01:44:13 +00:00
Klaus Leithoff
4cc16bcc33
API/customfields: fix for link-entry validation problems caused by unmotivated/empty default data. This may require a review.
2012-01-03 16:34:03 +00:00
Klaus Leithoff
acd3806ab1
* API/customfields: fix for Stylite Ticket#2629 ->Mandatory custom field not saved<- fix for customfields (if mandatory) where not saved on first attempt, after failed formvalidation.
2012-01-03 14:41:59 +00:00
Philip Herbert
25ab165898
mending Warnings: Cannot use a scalar value as an array
2011-12-19 12:40:47 +00:00
Nathan Gray
824829ae3e
Fix missing >< when merging to XML, caused by double escaping
2011-12-12 23:28:20 +00:00
Ralf Becker
c5712cd6b5
dont use html5 input type="url", as it requires a scheme (eg. http)
2011-11-24 07:13:06 +00:00
Ralf Becker
176e81cd1c
* ImportExport: allow to select "Old fixed definition" in preference for nextmatch export (disk icon)
2011-11-21 10:10:46 +00:00
Ralf Becker
de9280dc6b
fixed warning if no name part exists
2011-11-18 13:04:32 +00:00
Ralf Becker
35ac4e0993
* Mergeprint: fixed not working merge (white screen, nothing in error-log) under PHP 5.2.6
...
Catchable fatal error: argument 1 to transformToXml() must be of type DOMDocument
2011-11-17 08:44:40 +00:00
Ralf Becker
fe22901d54
* Filemanager/eTemplate: fix for MyStylite bug #2495 : deleting files containing [ as first char deletes whole directory
...
added encoding of square brackets in eTemplate and improved etemplate_bo::(get|set|isset|unset)_array() to split indexes at ][ and not just [
2011-11-09 14:32:50 +00:00
Ralf Becker
bd616f8a34
merged some fixes from Trunk to quieten warnings in CalDAV:
...
- r36515: query_list(). initialize return value to array(), to allways return an array
- r36542: skip the empty (NULL) row
2011-11-06 09:49:53 +00:00
Nathan Gray
f6a28b7550
Remove ID, if already in title (eg Infolog)
2011-11-03 14:31:01 +00:00
Klaus Leithoff
85857cae6c
silence warning: bo_merge::get_links -> make third parameter optional, as the parent function called has this one as optional parameter too.
2011-10-31 11:24:13 +00:00
Nathan Gray
6da51ecbdb
* Add {{links}}, {{attachments}}, {{links_attachments}} placeholders for merging
2011-10-27 16:21:15 +00:00
Klaus Leithoff
bea7bba0b3
* import/export: fix for failed export on not set limit for nonadmins on standard export (handle empty export_limit since it will be casted to 0 on (int))
2011-10-12 10:40:51 +00:00
Klaus Leithoff
55dbf20c33
* calendar/addressbook/importexport/merge-print: introduction of a static function to fetch the export limit, and normalize the possible output: bo_merge::getExportLimit; apply new function to bo_mergen, nextmatch_widget, addressbook, calendar and importexport; introduction of an calendar export limit; introduction of hook to provide appspecific export_limit
2011-09-16 13:23:15 +00:00
Klaus Leithoff
9037a6c039
making 1st param for custumfield_widget construct (ui) optional, to avoid warning
2011-09-13 08:39:24 +00:00
Ralf Becker
1d6f9f0bfe
check if we can use the XSL extension, to not give a fatal error and rendering whole merge-print non-functional AND only keep tags, if XSL is available
2011-09-12 10:56:08 +00:00
Ralf Becker
7c381ba855
added "progress"(-bar) widget to differ from image and using it in templates
2011-09-08 19:03:44 +00:00
Ralf Becker
975a8ade09
* API/Calendar: allow to link to accounts and allow to select accounts as participants by searching them like contacts
2011-09-07 16:47:08 +00:00
Nathan Gray
3bdbeef5d6
Taming tidy - fixes extra line breaks, don't detect encoding.
2011-09-07 15:51:33 +00:00
Ralf Becker
9070d862ef
revert r36436 again, as it breaks showing lists and enumerations without styles
2011-09-06 09:28:05 +00:00
Ralf Becker
36093fbd2a
added missing semicolon to entity ​ and do an urldecode to get a nicer looking link
2011-09-06 07:42:08 +00:00
Ralf Becker
78b7a1442d
* Mergeprint uses tidy, if available, before atempting to convert html to office documents, requires now php-tidy
2011-09-06 06:27:07 +00:00
Ralf Becker
7540459b58
missing encoding of id
2011-09-06 06:23:54 +00:00
Ralf Becker
41c61e3979
backported from Nathan: Preserve text with styles inside lists, discard styles
2011-09-06 06:07:17 +00:00
Nathan Gray
cc80f295c6
Remove spans with no attributes, they're invisible and can cause invalid XML with linebreaks
2011-09-05 17:11:20 +00:00
Klaus Leithoff
a3b17caa5f
* impportexport/document merge: better control of exportlimits, you are now able to exempt groups or users from any exportlimits set (backport of nathans work, with enhancements from ralf)
2011-09-01 14:32:26 +00:00
Ralf Becker
bf4fcb159e
* richtext custom-fields
2011-08-30 19:19:56 +00:00
Nathan Gray
98ec62d0e2
* Translate basic HTML formatting (bold, underline, cursive, text & background color, bullets & lists, fonts, size) into target document's formatting when merging into a template. Works for odt, docx and some xml.
2011-08-30 16:08:34 +00:00
Ralf Becker
8d4bd41736
allow to call a function instead of a static helptext
2011-08-27 18:36:16 +00:00
Nathan Gray
1cddecb832
- Fix missing formatting in xml/word documents
...
- some changes in bullets, maybe avoid error in docx documents
2011-08-22 22:30:14 +00:00
Nathan Gray
e8e5a3066a
Simple date/time, still needs to know user format
2011-08-22 18:18:29 +00:00
Ralf Becker
b65c87ec2c
added all existing select-* widgets
2011-08-22 16:56:45 +00:00
Andreas Stöckel
c5acfe93bf
Added 'overflow' attribute, got infolog.edit loading
2011-08-22 16:37:04 +00:00
Andreas Stöckel
4869ca9a49
Implemented hiding grid columns and rows, fixed bug with et2_template::isInTree returning false in the wrong places and thus not all values being transmitted back to the server
2011-08-22 15:58:47 +00:00
Andreas Stöckel
445c04dce1
Added onclick handler to baseWidget and change handler to inputWidget
2011-08-22 14:38:05 +00:00
Nathan Gray
0264b70a0b
Silence warning when export exception is not set
2011-08-22 14:20:44 +00:00
Klaus Leithoff
23ec5634b3
* API: taking care of sorting AND filtering by customfields with names containing whitespace; (best way to deal with this issue, is not using whitespace in your customfield names at all)
2011-08-22 13:12:32 +00:00
Klaus Leithoff
b76da493de
* API: taking care of sorting AND filtering by customfields with names containing whitespace; (best way to deal with this issue, is not using whitespace in your customfield names at all)
2011-08-22 13:08:19 +00:00
Andreas Stöckel
1db6a7aaf5
Added support for the 'class' attribute
2011-08-22 11:16:37 +00:00
Andreas Stöckel
05eb7d0f54
Added 'activateLinks' ability to description tags
2011-08-22 10:50:55 +00:00
Andreas Stöckel
711b1c4886
Labeles are now generated as 'label' tags, basic implementation of the 'for' attribute, sel_options can now contain entries with 'title' and 'label'
2011-08-22 08:58:20 +00:00
Ralf Becker
31ab3d9d75
use html_entity_decode, as we add options with .text(), it can't be entities, but php knows no string literals with utf-8
2011-08-22 07:46:38 +00:00
Ralf Becker
0aa128b53e
Loading translations like other javascript files:
...
setting headers to allow browser to cache the file until it's etag containing the creationdates of the used langfiles changes
--> et2 can now use egw_lang object to translate labels, options, ...
2011-08-21 20:09:14 +00:00
Ralf Becker
7b89481b76
fixed typo giving fatal error with template infolog.edit
2011-08-21 17:13:08 +00:00
Andreas Stöckel
e3bea68512
Added XET file for label test
2011-08-21 15:22:28 +00:00
Andreas Stöckel
8bc726e1b8
Implemented 'label' property for input widgets (nathans code didn't work anymore), renamed 'parseArrayMgrAttrs' to 'transformAttributes'
2011-08-21 15:22:00 +00:00
Ralf Becker
db9434d8e6
added radio validation to etemplate_widget_checkbox, as they are nearly identical
2011-08-21 14:03:52 +00:00
Ralf Becker
5bc3844be8
fixed typo
2011-08-21 14:02:31 +00:00
Ralf Becker
7c5cb7e04b
validator for checkbox, not yet tested because of missing clientside
2011-08-21 13:47:45 +00:00
Ralf Becker
74fabe9994
removed implemented todo
2011-08-21 13:46:21 +00:00
Ralf Becker
32ea28a59c
fixed copy-n-paste typo
2011-08-21 13:45:55 +00:00
Andreas Stöckel
09bc77426c
Selectbox now allows 'option'-widgets inside of it, added hrule widget, added support for 'buttononly'
2011-08-21 13:24:20 +00:00
Andreas Stöckel
4ad303529c
Added forgotten tab header
2011-08-21 13:15:25 +00:00
Ralf Becker
76d5a57b8c
added validator for htmlarea, not yet tested, as it is not yet implemented on clientside
2011-08-21 13:01:10 +00:00
Ralf Becker
ec58f52b62
implemented disabled columns
2011-08-21 12:43:02 +00:00
Andreas Stöckel
0fdf434321
Got JS handlers working again
2011-08-21 12:23:56 +00:00
Ralf Becker
c4293ba3bc
honor disabled attribute in validation for widgets including grid rows, but not yet grid columns
2011-08-21 11:55:56 +00:00
Ralf Becker
7916e86880
method to translate options incl. optionial title
2011-08-21 11:38:01 +00:00
Ralf Becker
e0624ebe89
removed set_(row|column)_attributes and disable_(row|column) method, which modifies template on run-time, it was only used internally by etemplate
2011-08-21 09:14:58 +00:00
Andreas Stöckel
aa07a39a2e
Don't allow children for the menupopup
2011-08-21 08:59:12 +00:00
Andreas Stöckel
127e629eef
Adapted selectbox widget code to new etemplate2 js core scheme
2011-08-21 08:48:53 +00:00
Andreas Stöckel
7c7a8230cf
Added basic approach to have selectbox widget running again (probably not fully working yet)
2011-08-20 18:34:14 +00:00
Ralf Becker
e92087df31
- new validator for selectboxes (menupopup)
...
- also used currently to supply options for predefined selectboxes (eg. select-cat), need to discuss if we want to fetch these per ajax
- new widget method run, which runs a given method on all widgets (and children) supporting it, eg. used now for validate
2011-08-20 10:27:38 +00:00
Andreas Stöckel
fcff01e3cc
Fixed textbox cols/rows always being set to 1
2011-08-19 16:39:28 +00:00
Andreas Stöckel
5af5594f60
Major update of the et2_widget internal structure. The following changes were made:
...
- All attributes of the widgets are now parsed from XML before the widget itself is created.
These attributes plus all default values are then added to an associative array. The associative array is passed as second parameter to the init function of et2_widget, but is also available as this.options *after* the constructor of the et2_widget baseclass has been called.
The et2_widget constructor also calls a function parseArrayMgrAttrs(_attrs) - in this function widget implementations can read the values from e.g. the content and validation_errors array and merge it into the given _attrs associative array.
After the complete internal widgettree is completely loaded and created the "loadingFinished" function gets called and invokes all given setter functions. After that it "glues" the DOM tree together. This should also (I didn't measure it) be a bit faster than before, when the DOM-Tree was created on the fly.
Please have a look at the changes of the et2_textbox widget to see how this affects writing widgets.
Note: The "id" property is copied to the object scope on the top of the et2_widget constructor.
- When widgets are cloned the "options" array gets passed along to the newly created widget. This means that changes made on the widgets during runtime are not automatically copied to the clone - as this didn't happen anyhow it is not a really disadvantage.
On the other side there should be no difference between widgets directly inside the "overlay" xet tag and widgets which are inside instanciated templates.
- The selbox widget doesn't work anymore - it relied on the loadAttributes function which isn't available anymore. et2_selbox should use the parseArrayMgrAttrs function to access
- I've commented out some of the "validator"-code in etemplate2.js as it created some error messages when destroying the widget tree.
2011-08-19 16:00:44 +00:00
Ralf Becker
30ed6a8ab7
- added legacy-options parsing and defintions for currently implemented widgets
...
- added more server-side debuging:
* etemplate_widget_template class can be called via url and displays parsed xml, eg:
http://localhost/egroupware/etemplate/inc/class.etemplate_widget_template.inc.php?name=infolog.edit
This is different from directly calling the xet file, as it show what got parsed and how:
http://localhost/egroupware/infolog/templates/default/edit.xet
* etemplate_new class can be called via url to render an arbitrary template, eg:
http://localhost/egroupware/etemplate/inc/class.etemplate_new.inc.php?name=timesheet.edit
Thought not all are already rendered correct, eg. infolog.edit is not:
http://localhost/egroupware/etemplate/inc/class.etemplate_new.inc.php?name=infolog.edit
2011-08-19 08:22:19 +00:00
Ralf Becker
107b12abcd
- template references can contain attributes, in this case we have to clone the template and set them
...
- optional template namespace is in "content" attribute
- ability to unset validation messages
2011-08-19 06:30:06 +00:00
Ralf Becker
b57b633944
ability to unset validation messages
2011-08-19 06:21:46 +00:00
Ralf Becker
a488b67f99
serverside validation for textbox and button
2011-08-18 21:56:37 +00:00
Ralf Becker
d095250d85
read and parse widgets on serverside
2011-08-18 18:08:40 +00:00
Nathan Gray
5e54d6b12b
Add basic radio, readonly version of checkbox/radio
2011-08-18 17:34:01 +00:00