5cfd583904
Allow applications to add additional options to selectbox type options.
2015-04-13 21:57:46 +00:00
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
9cebe6a8fb
Fix unable to remove last value from multiselect
2015-04-02 15:41:05 +00:00
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
7fa86b19ca
do NOT send select-options for each autorepeated row for id like "set[$row_cont[id]][value]" and fix merging of app preset options with type-specific ones to not overwrite the later
2015-03-20 15:38:20 +00:00
63a7af621d
allow to submit partial content by passing a container(-widget) to etemplate2.submit()
...
- not send content is not validated and therefore not passed to server-side callback (currently only implemented for text-, select- and checkbox)
- new method et2_grid.getRow(_widget) to return a fake row container to pass it etemplate2.submit() --> implemented a real row-container for et2_grid
- new output_mode=4 for etemplate_new::exec() to force a json response, like form was submitted from client-side
--> allows to use full server-side validation for ajax like calls submitting only partial content
2015-03-20 02:12:33 +00:00
60e13cd679
Documentation update to be a little more clear about 'none' option
2015-02-26 16:16:00 +00:00
86eba3f137
for nextmatch filters we need to encode global nextmatch definition too
2015-01-12 14:10:40 +00:00
f15a37f368
always run fix_encoded_options to cope with customfields of type select got resorted by Firefox
2015-01-12 12:53:50 +00:00
60f67bfff8
* all apps: preserving for current user unavailable categories (eg. private categories of other user) when editing entries
2014-12-17 13:58:15 +00:00
f099800b62
Prevent empty options being sent when selectbox is in a row.
...
Fixes unwanted numeric options in auto-repeat rows.
2014-10-14 16:43:47 +00:00
e316379373
* Mail/Calendar/eTemplate2: fix timezone problems of times in grid or lists, if server_timezone differs from php.ini date.timezone
...
- for grid this is a real fix by correctly expanding names in auto-repeated rows and therefor running widgets beforeSendToClient methods
- for nextmatch is is just a hack looking at get_rows content and converting everything "looking" like a timestamp to a "Y-m-d\TH:i:s\Z" string
2014-10-01 19:10:59 +00:00
3e12e8f2f9
* Preferences: opening forced preferences set selectboxes for not set values to first real value not "Users Choice"
...
caused by etemplate_widget_menupopup not being run, it is now run by etemplate_new::exec / etemplate_new::fix_sel_options for everything in sel_options
2014-09-30 14:27:29 +00:00
c73cc6b398
fixing the fix: now cat_id=1 got not lost with a 2nd default option set in addressbook (0=None)
2014-09-09 14:11:42 +00:00
6689ca64f7
SelectAccount with type "none" should get sel_options but it should be readonly if user has no admin access. Fix infolog delegation for admin users with selectAccount type "none" selected
2014-07-29 17:39:35 +00:00
bd41288788
- Add special handling for ids like something[{$row}] to only send select options once
...
- Don't need to process or send options for account, it is done client side now.
2014-07-21 16:31:10 +00:00
c54e53d405
fixed PHP Strict Standards: Declaration of etemplate_widget_*::set_attrs() should be compatible with etemplate_widget::set_attrs()
2014-07-14 10:02:47 +00:00
02db5d0357
Don't send blank row option for read-only selectboxes. It's not needed, and can conflict with non-readonly (nm filter vs row)
2014-05-20 19:25:48 +00:00
4053d1a204
- Move function to find selectbox options to public, static so other widgets (read only selectAccount) can use it
...
- Fix selectAccount missing extra app-specific options
2014-05-05 17:25:01 +00:00
48fa6611f3
Use a single client-side cache for account selection so we don't have to send it for every widget
2014-04-23 19:00:59 +00:00
e526c42e3d
forgot to handle empty-label value
2014-04-18 08:32:13 +00:00
dac15dbded
Fix an additional case in duplication detection.
...
Prevents doubled options in some select-account widgets
2014-04-17 21:47:13 +00:00
0b9bffc40c
fixed validation for select-account to work on actual value and attribute account_type and not on options send by server
2014-04-17 12:46:27 +00:00
25351aa53b
fixed typeOptions were not added, if selectbox had no explicit type attribute: eg. <select-account
2014-03-18 11:39:03 +00:00
44fc850d75
ignoring $row not only for "nm" namespace and fixed IDE warnings
2014-03-03 15:55:05 +00:00
2955e89bbe
quitened permanent error_log
2014-02-24 11:55:25 +00:00
c735663346
Work in progress of straightening out the user selection options
2014-02-20 00:35:07 +00:00
9b84be6d01
Fix some group selections showing accounts instead
2014-02-19 21:54:48 +00:00
c1689c7328
Fix account selection missing members of non-primary groups
2014-02-18 22:36:22 +00:00
aca00c49f7
Fix account selection did not contain primary group members
...
Was visible in infolog list account filter headers
2014-02-18 22:08:15 +00:00
ae057bd957
fixed cat-id in nextmatch header of addressbook is in id-order and not alphabetic/hierarchical order
2014-02-18 16:35:54 +00:00
e314011e88
Harmonize readonlys processing, fixes some fields in grids not validating if other rows were read-only.
...
- Change server-side get_array() to return null if not found, matches client side getEntry() and allows us to tell the difference between false and not found
- Change server-side is_readonly() to properly consider expansion & sub-arrays
- Fix client side et2_readonlysArrayMgr to properly consider expansion & sub-arrays
2014-02-10 21:59:50 +00:00
646c444670
order accounts according to pref of how to display them
2014-01-21 18:46:42 +00:00
2123b7cbbf
Fix validation of selectboxes when options are specified as key => (label,title).
...
Fixes edit dialog actions not validating
2014-01-20 16:15:53 +00:00
a64da9f456
Disable automatic chosen, only explicit now
2014-01-10 09:47:26 +00:00
243f20e98c
fixed handling of optgroups, eg. notification chains in prefs
2014-01-10 07:08:45 +00:00
bbd146c0b9
Remove debug error message
2013-12-10 19:39:01 +00:00
cc3754ff85
Expand legacy options explicitly, since $legacy_options is not defined
...
Fixes missing app-specific categories in category edit popup
2013-12-10 19:37:57 +00:00
d1106a31fc
Check & avoid duplicates when re-indexing options
2013-11-27 20:22:36 +00:00
aed7267801
If search option is set in template, don't override it with automatic chosen switch based on option count.
2013-11-27 18:07:36 +00:00
52dbc208a6
Don't reset value to array index if it's already there
2013-11-26 20:03:19 +00:00
823e2b62c0
allow default label, even if switched to multiple, as it might stay if switch happens on clientside
2013-11-17 10:26:36 +00:00
1c7c699d4f
select-account: default label will be added on clientside, it doubles, if added here too
2013-11-06 10:31:57 +00:00
e5f76db8a8
fixed a typo in previous commit and get setting of value in typeOptions working
2013-11-06 08:59:38 +00:00
2793ab44fd
fix select-dow widget to return again a single value by oring together selected week-days
2013-11-06 08:49:06 +00:00
395dd415f8
fix for an etemplate:: call, that seems to be outdated self:: seems to be the static object to use now
2013-11-05 08:32:03 +00:00
7f50ed9f1a
fixed renumbered option-values because of array_merge
2013-11-04 16:05:51 +00:00
a1b66d286d
keep client/javascript from re-ordering nummeric option-values by sending them as array of objects with attribute value
2013-11-03 13:33:32 +00:00
28c2737c9f
Change multi-select header styling:
...
- Change icons from jQueryUI to egw
- Stop hiding header when not needed, always show
- Don't visually distinguish header
- Don't float right icons, leave them between checkbox and label
2013-09-30 15:39:36 +00:00
baaaf5b877
static method to get app-names as options, as from the widget itself
2013-09-04 13:48:22 +00:00