Nathan Gray
6fdeb9f5f8
Drag files from desktop anywhere onto filemanager uploads
2013-08-09 23:34:42 +00:00
Ralf Becker
c8aa72039f
html-encoding is done in etemplate engine
2013-08-09 11:17:30 +00:00
Ralf Becker
11f7673408
keeping options in format used for select-boxes everywhere else and convert to taglist.setData format just when calling setData, added new method select_all to set_value all items in select_options
2013-08-08 08:56:43 +00:00
Ralf Becker
99b6fe41e7
fix set_value to work after inital load, eg. on a button press
2013-08-07 14:52:12 +00:00
Ralf Becker
b70f4bcd27
fixed taglist to no longer require ids to be set in select_options, IF allowFreeEntries is left on its default true
2013-08-06 18:31:24 +00:00
Nathan Gray
dacc98ae72
Add drop_target attribute to support HTML5 dropping of files
2013-08-03 19:12:38 +00:00
Klaus Leithoff
a69df51eaa
as insertObject (called by treeObj.addObject) expects id to be either string or object, we cast the option.id in case its a number
2013-08-01 09:54:32 +00:00
Nathan Gray
72fb016cb4
Fix dropdown + favorites menu not doing anything when clicked.
2013-07-30 14:17:36 +00:00
Nathan Gray
6b537a1358
Add taglist-email sub-type, uses specific data source, formatting, and some client-side validation for just emails.
2013-07-30 14:16:47 +00:00
Ralf Becker
a293de8614
fix not working full submits if etemplate is etemplate_old and app uses etemplate_new
2013-07-30 12:21:19 +00:00
Ralf Becker
364fbd0f66
fixed wrong call leading to maximum stack size exhaused error
2013-07-22 14:11:58 +00:00
Ralf Becker
f0808f09af
fixed action _target.id was id of tree and not of action
2013-07-22 06:34:01 +00:00
Nathan Gray
f4a6c9859a
More fixes forjQuery/jQueryUI update issues
2013-07-20 17:20:55 +00:00
Ralf Becker
f2906a1052
moved most action "comfort" functions (with exception of nm_action and pagination) from server-side nextmatch class to client-side egwActions.updateActions() method, so they are available for all widgets
2013-07-20 16:47:33 +00:00
Klaus Leithoff
0a37e675bd
allow to set a limit of selected entries
2013-07-20 14:03:06 +00:00
Nathan Gray
bd63529096
Rework etemplate2 loading to use JSON plugin when loading from regular request & AJAX. instead of inline script tag
2013-07-20 13:57:53 +00:00
Nathan Gray
f60fa14c30
Wrap loadingFinished() in a try / catch, so if one widget has problems it doesn't break the whole template.
2013-07-20 13:54:31 +00:00
Nathan Gray
a21f6aedfe
Check to see if autocomplete is available before destroying
2013-07-20 13:51:12 +00:00
Ralf Becker
74cb73d2d2
moved most action "comfort" functions (with exception of nm_action and pagination) from server-side nextmatch class to client-side egwActions.updateActions() method, so they are available for all widgets
2013-07-20 13:45:22 +00:00
Nathan Gray
2beadad730
Make sure dialog is created before trying to update buttons
2013-07-20 13:05:03 +00:00
Nathan Gray
49ef157e69
Continued development on taglist widget:
...
- More attributes
- Fix missing parent class and action system handlers
2013-07-19 15:07:35 +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
36b5590882
Fix wrong argument order to jQuery.proxy()
2013-07-19 12:37:47 +00:00
Nathan Gray
b7ad0d33f8
Make sure onclick callback functions (specified as app.appname.funcname, or a real function) get all parameters passed, and they always can have a reference to the responsible widget
2013-07-19 12:36:59 +00:00
Nathan Gray
5b5a3ad58f
Fix copy-paste error in js attribute check
2013-07-19 10:55:07 +00:00
Nathan Gray
eb18408771
jQueryUI update changes where custom renderer hides
2013-07-19 09:31:00 +00:00
Nathan Gray
4ae6094d8d
New tag list widget, supports ajax & static options
2013-07-18 15:27:39 +00:00
Nathan Gray
14ebff54c9
Changes from updating jQuery & jQuery UI to latest versions
2013-07-18 15:26:41 +00:00
Nathan Gray
b3bf5b734f
Make unique ID deterministic - use template name
2013-07-18 09:21:07 +00:00
Nathan Gray
524f2b0f03
Use an etemplate / top template level prefix to avoid DOM ID collisions
2013-07-18 09:13:15 +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
f9b72b05ac
Don't need to set ID, framework does it automagically.
2013-07-17 12:32:36 +00:00
Nathan Gray
df0dc0f27a
If record ID is missing, don't try to get data for it - skip the whole request
2013-07-17 09:36:38 +00:00
Nathan Gray
85db39ed4e
Support row ids from template:
...
id="$row_cont[field]"
2013-07-16 16:22:20 +00:00
Ralf Becker
92e0ee86a5
* All apps: allow to log user-agent and action of all changes in history-log of entries (enable in Admin >> Site configuration)
2013-07-11 13:09:23 +00:00
Nathan Gray
4e947b304c
Don't complain about read-only required fields
2013-07-10 18:25:28 +00:00
Nathan Gray
2bd53e72d4
Change evaluation order to get popup selector working again after last fix.
2013-07-08 22:24:36 +00:00
Nathan Gray
54eb53cdba
When setting a validation error for a widget on a tab, switch to that tab so the user can see it.
2013-07-08 21:55:38 +00:00
Nathan Gray
55dc847f95
Fix bug where images with numbers in their url were not displayed
2013-07-08 19:40:17 +00:00
Nathan Gray
388b0816b7
Fix box autorepeat - only repeat children of type box
2013-07-08 19:06:28 +00:00
Nathan Gray
e8c394ed54
Implement egw action system on grid rows.
...
NB: This is not nm_actions. See action system (egwAction.prototype.set_onExecute()) for details.
2013-07-05 15:13:05 +00:00
Nathan Gray
a0b07635eb
I can find no issues with attributes being objects, removing check & warning.
2013-07-05 15:03:49 +00:00
Nathan Gray
ab3fbd56bd
Promote label attribute from inputWidget to parent valueWidget, fixes missing labels on some readonly widgets
2013-07-04 20:42:21 +00:00
Nathan Gray
4d2c969b8f
Box children can now auto-repeat if child ID has $
2013-07-04 19:38:36 +00:00
Nathan Gray
5e90755cd6
Add 'sortable' attribute to grid.
...
Set it to an AJAX (PHP) callback to enable, and it will be passed the grid ID & new row order whenever the user re-orders the grid rows.
2013-07-03 23:16:15 +00:00
Nathan Gray
67d2fb66c2
Add a check to prevent total failure in the rare event of bad settings.
2013-07-03 23:06:59 +00:00
Ralf Becker
486298a7c9
optional parameter for et2_nextmatch.applyFilters(_set) to certain filters before updating the rows, eg. applyFilters({ filter: '', search: ''}); to reset filter to 'all', remove search and update the rows
2013-07-03 14:29:17 +00:00
Ralf Becker
349da32512
allow to set name attribute of iframe (to be used as target in links)
2013-07-03 14:26:33 +00:00
Ralf Becker
98f13d3e55
new method to specify images of a given node or standard images for new node (not specifying them), fixed merging of dynamicly loaded data, which was not taking recursive struture into account and -1 as id to update, using new id of new data in that case
2013-07-02 18:24:32 +00:00
Ralf Becker
ffceaf445a
prototype for an admin app using et2 and a navigation tree, need to set index url in database: UPDATE egw_applications SET app_index="admin.admin_ui.index&ajax=true" WHERE app_name="admin" (dont forget to clear cache)
2013-07-01 17:07:07 +00:00
Nathan Gray
533f141bc2
nextmatch is always valid too
2013-06-26 22:23:41 +00:00
Nathan Gray
0c6f70005a
Implement some basic client-side validation (required)
2013-06-26 20:50:10 +00:00
Nathan Gray
7142d632a5
Implement htmlarea ascii mode
2013-06-26 19:34:14 +00:00
Nathan Gray
8f2248b6ab
When setting nextmatch filters, accept empty values too
2013-06-26 18:04:51 +00:00
Nathan Gray
0fa6386b1c
Avoid XSS by using CSS to keep line breaks intact instead.
2013-06-26 14:11:54 +00:00
Nathan Gray
35da74fac0
Make sure there's a 'None' option if the select-account is not required so user is not forced to pick an account.
2013-06-25 22:15:09 +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
442c9e6356
- Add required attribute to radiobox so it can pass it on to radio buttons
...
- Add detached DOM support to play nice in datagrid rows
2013-06-25 20:53:39 +00:00
Nathan Gray
059e82a01b
Change newlines to <br /> in read-only text to preserve multi-line data.
2013-06-25 17:48:48 +00:00
Nathan Gray
d2031034f1
Silence some more messages by providing attribute info
2013-06-25 16:44:50 +00:00
Nathan Gray
e0b576e822
Fix read-only selectboxes not being translated
2013-06-25 14:37:24 +00:00
Nathan Gray
80ae80098e
Fix disabled grid rows still being created.
...
While not ideal (prevents modification / un-disabling after), this prevents some problems with doubled IDs
2013-06-24 20:50:37 +00:00
Nathan Gray
eaa0cb6fa0
Need to trigger chosen update for single selects too
2013-06-19 19:01:42 +00:00
Nathan Gray
865151f977
Use value as string, so we don't fail if invalid data is passed
2013-06-19 18:06:59 +00:00
Nathan Gray
683a624710
Fix for some customfield dates going missing
2013-06-18 23:24:14 +00:00
Nathan Gray
1b3c8d15c8
Fix for HTML site/general configuration overwriting customfield settings
2013-06-18 23:23:42 +00:00
Nathan Gray
8a2c791be3
For radiobox customfields, implement "empty" first value = extra group label
2013-06-18 20:55:13 +00:00
Nathan Gray
0cd63aefc2
Fix missing custom selectbox rows attribute
2013-06-18 17:16:08 +00:00
Nathan Gray
c87a5d6806
Implement csv max,display for custom field text length
2013-06-18 17:03:06 +00:00
Nathan Gray
b933b17446
Put radio button labels after radio button by default
2013-06-18 15:08:50 +00:00
Nathan Gray
5c96c8c986
Prevent accidental too wide chosen boxes
2013-06-17 22:01:50 +00:00
Nathan Gray
94793b7808
Silence some warnings by providing info
2013-06-17 21:22:32 +00:00
Nathan Gray
ce5d6faa0a
Add setter method for tags attribute
2013-06-17 20:55:42 +00:00
Nathan Gray
8c449cae82
Trigger a load event on the template container when the etemplate is fully loaded, so other (non-app) scripts can hook in with ease. The etemplate2 object will be the second parameter to the callback.
2013-06-17 14:44:55 +00:00
Nathan Gray
8f277e0203
If disabling (=hiding) a widget, do its label too
2013-06-12 23:14:09 +00:00
Nathan Gray
7fc6d7e24d
Fix read-only display of links with application already set
2013-06-11 23:13:04 +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
d2b9501208
Fix up column selection pref / default / forced to update session & indicate to admin that preference has been forced
2013-06-11 22:50:05 +00:00
Nathan Gray
62a28e88fc
Accept any multiple CSV, not just numeric IDs
2013-06-10 23:38:02 +00:00
Nathan Gray
7da0e6d27b
Check to make sure search sub-widget is created before trying to use it
2013-06-10 22:07:31 +00:00
Nathan Gray
92aa694f97
Fix customfield sub-type restriction blocking all customfields
2013-06-10 20:15:11 +00:00
Nathan Gray
e5b91c72f2
Fix nm_compare_field() to work with et2
2013-06-10 19:26:04 +00:00
Nathan Gray
de7d633bd7
Make account quick search add to selection instead of replacing it
2013-06-10 16:53:41 +00:00
Nathan Gray
c8bbf8b582
Add tooltip explination to auto-refresh selectbox
2013-06-10 14:33:09 +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
d25d2d1b98
Fix link-entry widgets with only_app set losing value
2013-06-05 17:11:49 +00:00
Nathan Gray
a10914b20e
Fix link-entry custom fields showing application selectbox
2013-06-05 17:10:57 +00:00
Nathan Gray
cf0f1c9cd2
Implement no_files attribute
2013-06-04 23:05:31 +00:00
Nathan Gray
4d13f3170f
Can't forget to reset the ID (template name), or it might not be able to load the template
2013-06-03 23:05:02 +00:00
Nathan Gray
f5ab004499
Fix occasionally missing selectbox value
2013-06-03 22:33:50 +00:00
Nathan Gray
d5b289e894
Add a global ajax callback so the et2 widget can stay in sync with the dhtmlxtree
2013-06-03 16:32:45 +00:00
Nathan Gray
e2d6d9a65d
Change some indenting
2013-05-29 19:12:14 +00:00
Nathan Gray
aeeb3e9469
Silence one warning by providing an attribute definition
2013-05-29 19:08:00 +00:00
Nathan Gray
59471e7e18
Queue property updates
2013-05-29 19:06:23 +00:00
Nathan Gray
0285ea4b28
Avoid errors removing top-level widgets, check for parent property first
2013-05-29 18:57:48 +00:00
Nathan Gray
e948a270f6
Fix bug losing app when passing {app:... id:...} to link entry
2013-05-29 15:26:22 +00:00
Nathan Gray
d8fcb574a6
Implement csv_fields = false to disable export button
2013-05-28 18:16:22 +00:00
Nathan Gray
9248942e9f
idots theme needs to use window, since the parent might not be full height either
2013-05-28 17:11:35 +00:00
Nathan Gray
25a6b2bda2
Update internal options
2013-05-28 15:43:35 +00:00
Nathan Gray
681be3af08
I guess template needs to stick around, even though it's freed
2013-05-27 23:34:14 +00:00
Nathan Gray
78b1fffc81
Fix spelling, avoid DOM error if you try to remove a node that wasn't added
2013-05-27 23:24:22 +00:00
Nathan Gray
7c7e100842
Properly remove template so it's not still a child
2013-05-27 23:22:31 +00:00
Nathan Gray
7f669bc5f0
Save a jQuery call by just passing the row to remove
2013-05-27 23:21:13 +00:00
Nathan Gray
68b4d0e975
Don't try to fill the window, just the parent
2013-05-27 23:12:40 +00:00
Nathan Gray
89fe4531e2
Make sure actions get set when a leaf is refreshed
2013-05-27 15:51:18 +00:00
Ralf Becker
50ed435eb7
* Calendar/InfoLog/Timesheet/Tracker/ProjectManager: edit focuses now automatic on title input
2013-05-23 09:01:33 +00:00
Nathan Gray
e8a21565ab
First run at a new home app. Just structure so far, more to come.
2013-05-22 20:13:12 +00:00
Nathan Gray
092493a065
Look for content / modifications inside the current name space as well, if the widget can create its own namespace
2013-05-22 18:13:37 +00:00
Nathan Gray
100c706674
Add an additional condition to check in case the template file is not recognized as XML, and try to parse it
2013-05-22 18:11:41 +00:00
Nathan Gray
f451b65557
Use refresh method for more intelligent updating
2013-05-22 18:10:26 +00:00
Nathan Gray
173d2ad374
Fixes to actions, to better support changing after initial creation
2013-05-21 20:24:40 +00:00
Nathan Gray
f53a90ccdf
Update in-code documentation to match code
2013-05-21 20:23:35 +00:00
Nathan Gray
08ac429774
Sort browser's widget list, so you can find widget you're looking for
2013-05-21 20:22:51 +00:00
Klaus Leithoff
6e1e86123f
add basic refreshItem function; TODO: need to implement the refreshing of the actions
2013-05-21 08:33:16 +00:00
Klaus Leithoff
c6164973ae
fix bug regarding the missing of all tree actions after leaf deletion
2013-05-17 13:30:43 +00:00
Klaus Leithoff
4c4a05e426
control resizing for IE10 under Windows8
2013-05-14 13:22:30 +00:00
Klaus Leithoff
090f8b134e
delete a leaf of the tree
2013-05-13 14:40:44 +00:00
Ralf Becker
85a198d9e6
fixed id check, causig it not to use options given for id=0
2013-05-13 11:59:09 +00:00
Ralf Becker
8cebfe3339
some more docu for tree-widget and allow to use autoloading-url for initialisation too
2013-05-12 13:09:20 +00:00
Nathan Gray
e9a5f7e09c
Add values for tabs, and make sure dynamic tab values are passed
2013-05-10 20:39:12 +00:00
Ralf Becker
489978d590
use either tab definition from xml or tabs defined via setElementAttribute($id, tabs, array $tabs), also allow that for old eTemplate
2013-05-09 09:28:27 +00:00
Nathan Gray
73f1cd921b
Use new dialog to confirm favorite deletion
2013-05-09 04:05:03 +00:00
Nathan Gray
eaa100921c
Fix preferred favorite not being saved
2013-05-06 21:34:47 +00:00
Nathan Gray
c5c4d92d09
Make sure activeFilter gets set during init
2013-05-06 20:58:59 +00:00
Nathan Gray
43d0128fb6
Update action/leaf id when renaming
2013-05-06 20:03:14 +00:00
Nathan Gray
57d6132a37
Actually use template attribute when provided
2013-05-06 17:36:37 +00:00
Nathan Gray
8a2259ae99
Enhance tab widget's 'tabs' attribute to include hidden, and id to access content array
2013-05-06 17:17:52 +00:00
Nathan Gray
d3f498f0f4
Avoid an error if type is missing
2013-05-06 17:12:45 +00:00
Ralf Becker
005d5ed090
value of description set via id need to get translated, if !no_lang is set, value set via value attribute already get translated via transformAttributes and translate: "!no_lang" of value
2013-05-03 11:46:26 +00:00
Nathan Gray
42fd3fe37b
Implement optgroups for select widget
2013-04-29 18:36:48 +00:00
Klaus Leithoff
8913df2366
remove console logging on focused
2013-04-29 14:59:55 +00:00
Klaus Leithoff
efd4d85143
add rename of an item. caveat, does not rename dependent leafs yet
2013-04-29 14:58:29 +00:00
Ralf Becker
5eede4a8ef
allow to use <widget type="${row}[type]"/> in xet files
2013-04-28 12:43:18 +00:00
Ralf Becker
947511779a
_atts["select_options"] is not null but {}
2013-04-28 12:42:13 +00:00
Nathan Gray
4759d19d25
Fix nextmatch hierarchy display
2013-04-24 19:53:51 +00:00
Ralf Becker
78449edd4c
some css for new dialog: left aligning buttons as everywhere in EGroupware, auto-size dialog, static show_prompt method to display a prompt, fixed not working translation of standard buttons
2013-04-23 16:51:00 +00:00
Nathan Gray
6f124f4b10
When nm loads data, make sure selection is still shown
2013-04-23 15:34:47 +00:00
Nathan Gray
516872e322
Fix custom buttons with no template not working
2013-04-22 22:56:55 +00:00
Nathan Gray
5e84ddd935
Change admin column selection to allow setting / clearing / forcing column selection
2013-04-22 22:32:40 +00:00
Nathan Gray
fc727570dd
Implement set_value() on file widget - you can't really set file upload values programmatically to anything that makes sense, but it can be cleared
2013-04-22 16:52:03 +00:00
Ralf Becker
3a14e96d1a
allow to use hierarchical function names, eg. app.filemanager.upload via new et2_call function
2013-04-20 19:21:42 +00:00
Ralf Becker
28aab234a7
fixed space instead of tabs
2013-04-20 19:20:51 +00:00
Ralf Becker
cd024eef1b
add nice link overlay icon to vfsMime widget (for symlinks)
2013-04-20 12:19:27 +00:00
Ralf Becker
a14ede7587
added @memberOf to get outline
2013-04-20 09:51:52 +00:00
Nathan Gray
5555edcb98
Add dialog widget
2013-04-16 18:50:43 +00:00
Nathan Gray
b66a74ff03
Make currently browsed widget available for console playing as window.wb_widget
2013-04-16 18:48:06 +00:00
Nathan Gray
4239b83bd0
Add not implemented js function type. It understands app.appname.function style arguments
2013-04-16 18:44:43 +00:00
Nathan Gray
a4395a8000
If a specific template name is not provided, use the last template in the file
2013-04-16 18:42:53 +00:00
Nathan Gray
d58a3128e7
Some checking to make sure variables are there, and avoid errors
2013-04-16 18:40:38 +00:00