Nathan Gray
6fd841ebee
Don't return empty array for empty single selects, should fix some problems with empty selections
2016-03-17 17:22:56 +00:00
Nathan Gray
fd2bf095aa
Avoid failure of nextmatch check with widgets without parents
2016-03-09 22:05:49 +00:00
Nathan Gray
40f56f7ad5
Need to get cachable options synchronously if it's a read only in a nextmatch row as we won't be able to set it later
2016-03-09 21:05:09 +00:00
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
Nathan Gray
3895b4ca0e
Remove incorrect ajax stuff from selectbox, just enhance taglist to support static options as well as ajax
2016-02-09 20:19:16 +00:00
Nathan Gray
1d3e696676
Ajax fetching for chosen taglist style selectboxes - set tags & source attributes
2016-02-09 00:38:09 +00:00
Nathan Gray
369a478733
Avoid duplication of global categories due to integer values
2016-01-25 19:16:19 +00:00
Nathan Gray
c992e8830c
Fix selectbox shows incorrect selection if options get changed & value does not
2015-11-05 21:44:11 +00:00
Nathan Gray
8b42f6aeb8
Load all category CSS once when loading the application to avoid missing category colors.
2015-10-15 17:28:56 +00:00
Nathan Gray
025550402a
Fix expandable selectbox button missing icon
2015-10-13 20:43:49 +00:00
Hadi Nategh
de4098e550
Make sure we are not requesting server for an empty value option or other widgets but select-timezone as server won't find anything and it will fall into an infinitive loop, e.g. select-cat widget.
2015-10-12 09:55:13 +00:00
Hadi Nategh
f89d4297d9
Fix infinitive request from selectbox widget
2015-10-07 13:52:56 +00:00
Nathan Gray
05ea41493d
Fix missing option check to work with options sent as an in-order array (label,value), fixes some custom fields not being properly set.
2015-10-05 15:25:10 +00:00
Nathan Gray
dde1a5e51d
Pass current selectbox value so the server can make sure it's there
2015-09-29 16:00:12 +00:00
Ralf Becker
8d476dae23
Several fixed to cope better with CalDAVTester:
...
- adding priority=0=undefined to calendar, as it is iCalendar default
- no longer export iCalendar defaults PRIORITY=0, TRANSP=OPAQUE, CLASS=PUBLIC
- assume UTC if no timezone given, unfortunatly Horde_Icalendar currently does not tell UTC or local
- export DURATION instead of DTEND for UTC and duration less or equal 1 day (todo: store if user entered duration in db model, to be able export it as such again)
2015-09-29 10:25:32 +00:00
Hadi Nategh
092cbb5059
Performance improvement:
...
JSON stringify/parsing deep object copy is quite faster than jQuery.extend deep copy, especially in IE
2015-09-07 15:12:45 +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
Nathan Gray
c770021acb
Automatically expand to multiple rows if the option is set and value is multiple so we don't lose part of the value
2015-08-11 22:26:49 +00:00
Nathan Gray
3cf6211c95
Little fixes to avoid some errors:
...
- Make sure widget is still there before trying to set its select options
- Make sure expand button is there before trying to remove it
- Only try to set select options if header widget is a select box
- Pass appropriate options into getEntry() so it can return null on not existing keys
2015-07-09 19:12:13 +00:00
Nathan Gray
64d74252cf
Get cachable select options asyncronously
2015-06-30 21:17:53 +00:00
Ralf Becker
c6bfc44d08
reverting previous commit, as it breaks in other places
2015-04-16 12:10:55 +00:00
Ralf Becker
0b07bccdca
partially revert r52487: as it doublicates some options and changes value of empty label from "" to 0
2015-04-16 12:04:06 +00:00
Nathan Gray
1da6e78def
Modifications to cached options
...
- country list no longer supports options when caching
- copy options to avoid modification with additonal options
2015-04-15 15:56:33 +00:00
Nathan Gray
5cfd583904
Allow applications to add additional options to selectbox type options.
2015-04-13 21:57:46 +00:00
Ralf Becker
fd435043ad
fixed not shown readonly value for numerical values
2015-04-03 14:20:19 +00:00
Ralf Becker
d82f65e95e
reverting r52412, as it breaks not validating not send values, sending empty array for nothing selected in selectbox instead of (not submitted) null value
2015-04-03 12:43:26 +00:00
Nathan Gray
1deb3d4f34
Selectbox options kept on the client side
...
Static options copied to the client side in the JS code where possible, and requested from the server once via AJAX when needed.
2015-04-01 17:11:21 +00:00
Nathan Gray
3125dcba42
- Fix infinite loop in onchange trigger on selectboxes under some cases
2015-03-31 16:29:15 +00:00
Nathan Gray
6671f4090a
- Fix missing onchange trigger on selectboxes
...
- Avoid loops caused by onchange trigger when applying filters
2015-03-31 16:23:41 +00:00
Nathan Gray
9c28235334
Fix select options with ${row} were not always found
2015-03-25 21:45:57 +00:00
Nathan Gray
99657a094b
After we find a match, no need to keep looking.
2015-03-24 15:18:19 +00:00
Ralf Becker
dff07e68a5
empty-label was not translated if set via (legacy-)options
2015-03-20 19:25:51 +00:00
Ralf Becker
66ecee59a5
fix javascript error stalling eT2 rendering, if option label is null eg. because it could not be json encoded because of non-utf8 chars in it
2015-03-19 10:54:29 +00:00
Nathan Gray
6eb5fead04
Fix multiselect/taglist values not properly set if value is an object instead of an array
...
- Fix to handle strings and nulls too
2014-12-08 20:01:15 +00:00
Nathan Gray
68151ad8e7
Fix multiselect/taglist values not properly set if value is an object instead of an array
2014-12-08 18:14:00 +00:00
Nathan Gray
fd191888bb
Fix missing empty label when no value in readonly selectbox
2014-11-24 19:58:59 +00:00
Nathan Gray
84821bef95
- Apply 'none' user selection preference (with admin consideration)
...
- Avoid potential infinite loop with no select options
2014-09-29 20:37:23 +00:00
Ralf Becker
9ca870d1e7
we need to return null for no value instead of empty array, which gets overwritten by preserved value on server-side
2014-09-26 11:25:09 +00:00
Nathan Gray
ff29be3197
Fix history log widget no longer working
2014-08-27 17:13:38 +00:00
Nathan Gray
3176500c83
Refine select option searching when the id is like parent[selectbox].
...
- only search parents when the ID has multiple parts
- fix case when selectbox was in the sel_options arrayMgr, but had no options, parent was used as select options
2014-07-22 21:21:33 +00:00
Ralf Becker
f011a6c3d1
fixed broken regular expression for multiple comma-separated values (dash in character class has to be last character!)
2014-07-13 09:14:58 +00:00
Nathan Gray
315a0d4ac0
Pass along width attribute, so it can be passed to chosen
2014-06-09 22:55:39 +00:00
Ralf Becker
2c5ba307b5
convert numbers to string for consistent matching, 0 was never set, because it was treated as already set, which gives wrong result if it is not first option
2014-06-04 09:52:02 +00:00
Nathan Gray
51c73ddf89
Make sure all account options are present. Was on server side, now needs to be client side. See r46713
2014-05-13 18:40:31 +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
Hadi Nategh
0691903105
Still need to translate empty_label in selectbox widget for cases like when we do have "options" as an extra item for select_options
2014-05-07 13:03:14 +00:00
Hadi Nategh
b3ebc04ae5
Fix missing "translate" sub-attribute for some other widgets "empty_label" attribute.
2014-05-07 12:23:02 +00:00
Nathan Gray
b76ace01f5
Revert r46820 as it causes some widgets (tag list) problems.
...
Fix select account changing selectbox default instead.
2014-05-06 19:56:02 +00:00
Nathan Gray
c99f0ee32d
Fix bug in last select option fallback option, was getting value instead of options
2014-05-05 22:17:23 +00:00