Commit Graph

161 Commits

Author SHA1 Message Date
Nathan Gray
8fab640449 Fake the drop position when pasting 2014-11-06 21:33:23 +00:00
Nathan Gray
0f516f9eb7 Add action to add to clipboard 2014-11-04 21:34:18 +00:00
Ralf Becker
8abbf0d20e fix can not access property type of null, stalling context menu on tree 2014-10-31 08:31:23 +00:00
Nathan Gray
6272b57088 * Context menu items to copy and paste for drag and drop actions
Copy action is enabled when there are drag actions defined.
Paste action is enabled when there are drop actions defined that match the clipboard context.
Current clipboard contents can be seen in the tooltip for the paste action.
2014-10-30 22:18:37 +00:00
Hadi Nategh
00136ae83b Not used plugin, but included 2014-10-29 11:00:22 +00:00
Ralf Becker
dc3948126b fix IDE warnings 2014-10-24 12:44:15 +00:00
Ralf Becker
247a8c5e87 text and German translations for drag-n-drop modifier hints 2014-10-24 12:19:16 +00:00
Hadi Nategh
981a0a1eb9 * All Applications: Get all drag and drop action functionality working cross platform
-Fix drag Out to desktop functionality with Command+Shift keys (for Mac) or Alt+Shift keys (for other platforms)
-Fix content selection functionality with Command key (for Mac only) or Ctrl key (for other platforms)
2014-10-24 11:15:33 +00:00
Hadi Nategh
1d3769939b Apply Ctrl+Alt keys in order to be able to distinguish between content selection and dnd for draggable actions 2014-10-23 16:23:25 +00:00
Hadi Nategh
f58cb571ef Fix indentation 2014-10-22 15:35:58 +00:00
Hadi Nategh
fb0059b796 Use jquery-tap-and-hold plugin for taphold event on touch devices 2014-10-22 15:12:48 +00:00
Hadi Nategh
510469e60b Implement to set proper lable for dragging item for the drag helper 2014-10-21 14:31:18 +00:00
Hadi Nategh
549431fb73 Revert commit r49090, because it breaks special ctrl key and click handling in nm. Need more investigation to solve it 2014-10-21 13:35:19 +00:00
Hadi Nategh
c1c4b7c682 Replace the drag out trigger key from Ctrl (or Command key in Mac) to Shift key.
- Make Ctrl key as a standard dnd action disabling, and being able to select content by holding Ctrl key.
2014-10-21 11:48:25 +00:00
Hadi Nategh
10eb33cbdd Get drag out action working again 2014-10-20 15:03:31 +00:00
Hadi Nategh
96d9f14d12 More progress of commit r49059 2014-10-20 11:41:59 +00:00
Hadi Nategh
dae1ce6554 Work in progress, standardization of dnd action helper styling for all apps 2014-10-17 16:34:14 +00:00
Hadi Nategh
55b97699b6 Notify user of how to select content of a draggable item 2014-10-16 14:41:30 +00:00
Nathan Gray
9f9f5184fc If selected egwActionObject(s) contain data, use that over global data store. 2014-07-14 20:29:42 +00:00
Ralf Becker
85c5468013 fixed old tree stuff to use new dhtmlx locations, allways use dhtmlxtree/codebase/dhtmlxcommon.js 2014-06-03 08:17:43 +00:00
Nathan Gray
3b8bee4d18 Update dhtmlxTree & dhtmlMenu to latest version 2014-06-02 23:32:15 +00:00
Nathan Gray
178fa34031 Implement action system state for trees 2014-04-28 23:11:58 +00:00
Nathan Gray
26eaf7e1fe Add a isDefault flag to allow changing default execution function 2014-03-11 16:25:18 +00:00
Ralf Becker
ea04a556ca added a couple more default icons similar to et2_button, and fixed actions with just a caption string where not working with toolbar 2014-03-06 18:33:27 +00:00
Ralf Becker
a7251c13ed using new css class "drop-hover" for hovering over egw_action dropables and no longer any activeClass showing possible drop targets 2014-03-05 12:31:32 +00:00
Ralf Becker
97a5a41867 fix typo 2014-03-04 12:20:26 +00:00
Ralf Becker
04442bb0cf move actions stuff to api bundle, as loading just it fails with etemplate bundle split in two parts (fixes error reported on devel list) 2014-03-04 09:10:58 +00:00
Nathan Gray
6b86eb9c0f For the purposes of keyhandling, consider textareas & buttons inputs too 2014-03-03 19:00:25 +00:00
Nathan Gray
3b15036ce8 Add a check for select_all action, and use it if there.
Fixes Ctrl+A only selected visible nextmatch rows.
2014-02-27 23:06:27 +00:00
Ralf Becker
58b6cb3bc6 fixed tons of IDE warnings 2014-02-25 15:03:13 +00:00
Ralf Becker
589a6e2e96 fixed not working hideOnDisabled when building popup menu for multiple drop actions, also fixed tons of IDE warnings 2014-02-25 15:02:49 +00:00
Nathan Gray
35c70fea93 Changes to action system:
- Change selected to not start at global root - fixes key handler only working for 1 app
 - Add depth limit for finding action / object (depth first search)
 - Use depth limit when looking for top level application action/object to avoid crossing apps
2014-01-18 11:21:53 +00:00
Ralf Becker
1ed9196066 just calling egw.image to use its special handling for egw_actions and dhtmlxtree 2014-01-16 16:49:26 +00:00
Nathan Gray
47c6c74fbf Never display an empty confirm message 2014-01-15 15:18:23 +00:00
Nathan Gray
e493255cc6 Allow action to confirm only on multiple rows selected, but let single rows proceed 2014-01-15 14:59:42 +00:00
Nathan Gray
881f8d254b Context menu only on keypress, or right-click of something with actions 2014-01-11 15:20:11 +00:00
Nathan Gray
8140ecf24b Don't try to translate caption if one was not provided - silences warning when dragging 2014-01-11 11:51:46 +00:00
Nathan Gray
aa47e50f97 Fix missing drag helper 2013-11-06 23:12:32 +00:00
Nathan Gray
1e6fcec665 Fix missing typeof operator 2013-10-24 17:01:58 +00:00
Nathan Gray
33a88ea089 Also accept meta (Command) key to turn on dragging files out of window 2013-10-09 09:12:02 +00:00
Ralf Becker
59f264ada4 do NOT require enabled=true for (enable|disable)Class or enableId attribute to work 2013-10-04 11:18:50 +00:00
Ralf Becker
dad39e1d8a moved all confirmation to api egw_actions and changed select_all to depend on all visible rows selected (Ctrl-A) 2013-10-03 15:30:27 +00:00
Nathan Gray
6fd5e50d60 Use a two step process to force an absolute URL, in case server settings have full URL 2013-09-17 15:34:39 +00:00
Nathan Gray
72e5c43a96 Add child action visbile/enabled checking - previously children were always enabled 2013-09-04 19:09:48 +00:00
Nathan Gray
eb989ed98b Hold Ctrl key to drag a file from filemanager to system folder / desktop
Restricted to Chrome only, one file at a time, folders don't work well.
This uses Chrome-only DownloadURL, so other browser support is unlikely.
2013-08-28 22:31:14 +00:00
Ralf Becker
0de6ab1b35 fix not working timesheet status and category actions: "disableClass", "enableClass" and "enableId" are now handled by action system itself, one should not set an explicit "enabled" attribute anymore 2013-08-26 08:24:50 +00:00
Ralf Becker
0984527661 let old eTemplate run its own confirmation from nextmatch_action.js 2013-08-26 07:36:51 +00:00
Ralf Becker
6fbfb6c784 propset svn:keywords 2013-08-26 07:36:19 +00:00
Nathan Gray
ba80841c5e Add some comments and a warning if action string can't be parsed to a function 2013-08-19 17:41:16 +00:00
Ralf Becker
37671ac812 fixed handling of attributes stored in data, was depending on order or attributes to work 2013-07-24 10:18:11 +00:00