Ralf Becker
13a723c0fb
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:31 +00:00
Ralf Becker
0a93f3dc0c
backport of Nathans r48352: Fix history log widget no longer working
2014-08-27 17:28:07 +00:00
Ralf Becker
0abcd5e68f
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-23 09:14:24 +00:00
Ralf Becker
d1d743e4b9
fixed broken regular expression for multiple comma-separated values (dash in character class has to be last character!)
2014-07-13 09:15:29 +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
Nathan Gray
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
Hadi Nategh
334c66d203
Set select_options for <listbox> widget type of "select-account" with egw->accounts client-side method
2014-04-24 11:49:39 +00:00
Nathan Gray
7a674ff8aa
Don't add empty label as option for tags or search (chosen), it's registered as a real option.
2014-04-22 15:47:22 +00:00
Nathan Gray
7ef65b30d6
Fix expand_multiple_rows button to only be added once
2014-03-25 15:20:05 +00:00
Ralf Becker
f1d7dd7a0e
fixed readonly selecbox not always found options, caused by it not expecting options to be an array. Now we always preserv type of options (array or object) and correctly iterate over them when trying to find an option by its value
2014-03-18 14:41:23 +00:00
Nathan Gray
f337d45b29
Fix taglist-account not suggesting anything by making sure select_options don't get set.
2014-03-17 20:24:34 +00:00
Nathan Gray
ace335415f
Add expand_multiple_rows attribute which adds a button to toggle between single & multiple select
2014-02-24 18:13:54 +00:00
Ralf Becker
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
Nathan Gray
565ead7288
Add a comment for why starting at '' - avoids infinite loops in set_value() / set_select_options()
2014-02-05 16:34:32 +00:00
Ralf Becker
3a618c23d9
reverted r45509, as it causes an infinit recursion of set_value calling set_select_options calling set_value and so on
2014-02-04 08:27:26 +00:00
Nathan Gray
cffa002dde
If value is available in init, keep it so it doesn't get cleared by set_select_options()
...
Fixes missing organization name
2014-02-03 20:05:29 +00:00
Ralf Becker
9e29d8b282
docu update to fix ide warnings and indention
2014-01-29 18:55:24 +00:00
Ralf Becker
3a140463e8
fix invalid debug-level "warning", has to be "warn"
2014-01-21 14:39:51 +00:00
Ralf Becker
243f20e98c
fixed handling of optgroups, eg. notification chains in prefs
2014-01-10 07:08:45 +00:00
Nathan Gray
3e4100d5df
Make sure content manager is not null before trying to use it (occasionally happens with programmatically created selectboxes)
2013-12-19 18:06:16 +00:00
Ralf Becker
8da1afca1e
some fixes to get "add favorite" in regular calendar views do something
2013-12-08 22:56:23 +00:00
Nathan Gray
b14424dbd1
Handle possibility of a null option without failing
2013-11-28 18:43:12 +00:00
Nathan Gray
f8352386cb
Use === to tell the difference between '' and (int)0 keys
2013-11-28 18:12:08 +00:00
Nathan Gray
fa65814f9e
Extend exception to all single select:
...
- Multi-select you don't select the empty/none option, just nothing
- Single select needs the empty/none option, even with chosen on
see r44551, 44631
2013-11-27 18:03:26 +00:00
Nathan Gray
1e36383224
Keep value in case select options haven't been set up yet so we can set value immediately after.
2013-11-27 16:35:45 +00:00
Nathan Gray
a5227f2359
Add read-only taglist
2013-11-25 18:10:48 +00:00
Nathan Gray
ad3f10d1b0
Add check for nulls, they break
2013-11-21 23:43:53 +00:00
Hadi Nategh
a5043743a8
Try not to remove options value for type "select-number" becasue we need it to display rows in legacy_options
2013-11-21 17:39:44 +00:00
Nathan Gray
b6f16956f3
Make sure options are set before looking inside
2013-11-18 23:56:25 +00:00
Nathan Gray
26888ce64c
When turning on tag mode, remove empty label from options.
2013-11-15 16:51:49 +00:00
Ralf Becker
441a0eb4e9
new seletbox.set_multiple(_multiple, _rows) method to switch multiple on/off on instanciated widget, optional parameter selectbox.set_tags(_tags, _width) to specify width
2013-11-07 13:20:49 +00:00
Nathan Gray
f973dc9b79
Fix missing category labels in nm list (set with full object was not implemented)
2013-11-06 20:26:38 +00:00
Ralf Becker
90a9df3d1e
key can be 0 or "" too, therefor need to check if attribute value exists
2013-11-06 10:31:31 +00:00
Nathan Gray
a2faa9bd00
- Clean up some link sub-widgets to make them operate a little nicer / more consistently
...
- Check attrs for already existing select_options too, should speed up selectboxes a little more
2013-11-04 19:00:43 +00:00
Ralf Becker
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
Nathan Gray
aa4651272e
Some minor enhancements / bugfixes, such as
...
- Better warnings
- Check some vars before using
- Fixes missing value on selects with tag attr
2013-11-01 21:12:20 +00:00
Nathan Gray
a81aaefbe3
Fix selectbox with array value not getting set
2013-10-22 21:18:45 +00:00
Nathan Gray
a5e0ee9cd0
Fix broken warning about setting value not in options
2013-10-21 22:20:18 +00:00
Ralf Becker
200c9e55fe
dont replace value&label "" with empty_label, as empty_label is allways added, ignoring it here, to not add it twice
2013-10-11 13:02:22 +00:00
Ralf Becker
ece1062b8b
fixed not translated empty_label in selectAccount or nextmatchAccountFilter: they always get translated independent of no_lang attribute
2013-10-10 10:23:37 +00:00
Nathan Gray
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
Nathan Gray
c19f95ded8
For multiselectboxes, we need to do an array comparison for dirty, or it will always fail (be dirty)
2013-09-19 20:37:17 +00:00
Nathan Gray
1bdd5eb617
Size chosen selectboxes even if they are hidden - prevents 0 width chosen selects
2013-09-18 20:15:11 +00:00