Commit Graph

90 Commits

Author SHA1 Message Date
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
Nathan Gray
407efdbcaf Some chosen parameters:
- Inherit classes from select
- Search within, not just at start
2013-09-17 16:22:51 +00:00
Ralf Becker
f4e1db3a68 fixed htmlarea not returning any content caused by prefixed DOM id, now all DOMwidgets have their DOM id available via this.dom_id set via this.set_id() 2013-08-23 14:10:37 +00:00
Nathan Gray
eb1be53297 Fix bad value in selectbox 'blank' option 2013-08-21 15:59:42 +00:00
Nathan Gray
c1be84c912 Some layout changes to get autocomplete (link widget, select users) working in dialogs too 2013-08-20 23:08:35 +00:00
Nathan Gray
d7375a2321 Add tooltips to popup header buttons 2013-08-19 20:21:56 +00:00
Nathan Gray
f4a6c9859a More fixes forjQuery/jQueryUI update issues 2013-07-20 17:20:55 +00:00
Nathan Gray
d2d0fa1fcd Check for proper type (string) if I want to use string functions 2013-07-19 12:38:52 +00:00
Nathan Gray
1b270b2d6f Use an etemplate / top template level prefix to avoid DOM ID collisions 2013-07-17 13:08:48 +00:00
Nathan Gray
c8d2953c85 Check that input is created before using it, avoids error when chosen gets involved. 2013-06-25 21:56:08 +00:00
Nathan Gray
3ddf4a0300 Fix read-only selectboxes rejecting some values (same as r42732) 2013-06-25 21:38:11 +00:00
Nathan Gray
e0b576e822 Fix read-only selectboxes not being translated 2013-06-25 14:37:24 +00:00
Nathan Gray
eaa0cb6fa0 Need to trigger chosen update for single selects too 2013-06-19 19:01:42 +00:00
Nathan Gray
5c96c8c986 Prevent accidental too wide chosen boxes 2013-06-17 22:01:50 +00:00
Nathan Gray
ce5d6faa0a Add setter method for tags attribute 2013-06-17 20:55:42 +00:00
Nathan Gray
4d26a36d09 Fix order of selectbox option detection so value is last choice 2013-06-11 22:51:45 +00:00
Nathan Gray
62a28e88fc Accept any multiple CSV, not just numeric IDs 2013-06-10 23:38:02 +00:00
Nathan Gray
6852d0807d Improve UI of multi-row selectbox
- Only check button, no x (check toggles all/none), aligned with checkboxes
- Header with buttons hides when not hovering over checkbox, saving space
- Account select now has quick-select in header
2013-06-05 22:45:19 +00:00
Nathan Gray
f5ab004499 Fix occasionally missing selectbox value 2013-06-03 22:33:50 +00:00
Nathan Gray
42fd3fe37b Implement optgroups for select widget 2013-04-29 18:36:48 +00:00
Ralf Becker
947511779a _atts["select_options"] is not null but {} 2013-04-28 12:42:13 +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
fbd81e6aa9 Fix 'undefined' in read only selectboxes when value was not in list of options 2013-03-25 23:00:25 +00:00
Nathan Gray
a0cedae8b3 Add chosen to et2 selectbox 2013-03-15 17:47:28 +00:00
Nathan Gray
fa020a5a37 Fix selectbox set_value() 'unchanged' check to actually check the value 2013-03-04 23:25:36 +00:00
Nathan Gray
a178fd1cec Stop caring about multiple for readonly, display all values provided 2013-02-07 16:05:32 +00:00
Nathan Gray
e094b35394 Get nextmatch_customfilter working 2013-02-07 14:36:19 +00:00
Nathan Gray
eac76facda Check for content options first 2013-02-06 17:08:12 +00:00
Nathan Gray
ebd061ea96 Fix for a rare case when selectbox with row in ID and options with label+title didn't work 2013-02-06 13:49:40 +00:00
Nathan Gray
f29d9ce72d - Keep internal value synced with widget value
- Handle case when rows attribute is specified, and rows legacy option is used for empty_label
2012-07-10 22:20:13 +00:00
Nathan Gray
6a7b991fb7 Make sure search button / header is visible even for short selectboxes 2012-07-05 20:16:19 +00:00
Nathan Gray
c19a3b6c5f Row values can get put in [id] or {}[id] - look in both 2012-07-05 20:01:54 +00:00
Nathan Gray
d156f20492 Fix bug where one selectbox's empty label could get added to all 2012-06-13 15:15:31 +00:00
Nathan Gray
6689578d52 Sometimes ID can get set to an empty array by server side - don't count that, look up the tree 2012-06-06 17:00:15 +00:00
Nathan Gray
4f4355f0f8 Fix empty label - default value for selectbox has to be '' 2012-06-06 14:21:38 +00:00
Nathan Gray
d9efe319d0 Remove registration for select-account 2012-06-06 04:06:48 +00:00
Nathan Gray
2573076826 Add some change detection, don't do anything if value is not changed 2012-06-05 21:09:16 +00:00
Nathan Gray
fc3553636d Make sure options get set, if provided to constructor 2012-05-23 23:54:30 +00:00