Commit Graph

130 Commits

Author SHA1 Message Date
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
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
23fa7ed233 Make sure node is Draggable / Droppable before trying to undo it - though it probably should be 2013-07-20 13:38:09 +00:00
Klaus Leithoff
fbedb9d558 rebuild basic browsertest functionality not provided by jquery anymore 2013-07-19 11:07:22 +00:00
Nathan Gray
c2c910cee2 Add UI object into all links, in case of popup, so it's available to whatever is chosen 2013-05-29 19:20:36 +00:00
Nathan Gray
555de8e540 Include jQuery's UI object in drop action for location 2013-05-29 16:41:00 +00:00
Nathan Gray
51161e8ddd For nested droppables, make children greedy to consume the action 2013-05-28 22:09:03 +00:00
Nathan Gray
4995e1fa08 When clearing, remove links too 2013-05-28 22:08:17 +00:00
Nathan Gray
eba9226dd3 Pass selected objects to callback 2013-04-12 10:27:04 +00:00
Nathan Gray
6d6feb06d7 Fix droppables to accept dragged if one of the types match 2013-04-11 12:53:23 +00:00
Nathan Gray
8192f13b3b Fix typos preventing some drops 2013-04-11 12:22:34 +00:00
Nathan Gray
93eacb1b13 Show browser context menu when you ctrl + right click 2013-04-10 09:03:08 +00:00
Nathan Gray
344bd88e4a Open context menu with context menu key 2013-04-09 16:13:10 +00:00
Klaus Leithoff
86fbb6c966 add target ID to target.iface object 2013-04-09 15:43:42 +00:00
Klaus Leithoff
cd25f3e625 applying the context: suggested by nathan 2013-04-09 14:26:06 +00:00
Nathan Gray
978a90852c Add a base object for application javascript code to contain it, and solve initialization timing issues 2013-04-09 08:45:59 +00:00
Nathan Gray
89ec3ba866 Add some images of Class Diagram 2013-02-15 16:46:16 +00:00
Nathan Gray
a325583643 Add some overview of how this stuff fits together 2013-02-15 15:55:23 +00:00
Christian Binder
bd270b4010 fix ignored _onExecute attribute 2012-08-25 14:40:48 +00:00
Christian Binder
98d17d7ca4 removed accidentally found typo and logging 2012-08-14 12:02:47 +00:00
Nathan Gray
5eae11346d If possible, include CSS here. Menu does not really work without it. 2012-06-19 18:55:03 +00:00
Andreas Stöckel
cfa9c190bb Implemented keyboard navigation and data retrival for uids 2012-03-29 14:11:22 +00:00
Andreas Stöckel
3a23d4bb21 Fixed bug with Ctrl-Key no longer working 2012-03-27 13:44:38 +00:00
Klaus Leithoff
988373b6c4 fix bug regarding the positioning of the drag n drop context menu popup 2012-03-16 12:30:52 +00:00
Andreas Stöckel
df36138012 Changed loading order of dhtmlxcommon 2011-09-09 14:50:50 +00:00
Andreas Stöckel
50ad9e4ba0 Included dhtmlx js files in egw_menu_dhtmlx.js, fixed problem with removing action objects, improved egw_include_mgr a bit 2011-09-09 14:03:18 +00:00
Andreas Stöckel
2e9104ecea Added dependencies to the egw_action js files 2011-08-03 14:04:30 +00:00
Andreas Stöckel
10e5735e16 Allowing mutliple action-link groups to be defined for grid entries. These must be comma seperated. 2011-08-02 11:51:58 +00:00
Klaus Leithoff
cae37dab26 if there is only a single event in the action, buffer it into/with a window.setTimeout function call, and wait for the trigger to execute and clean up as it does with multiple actions on a target 2011-07-21 10:50:33 +00:00
Andreas Stöckel
44b8c43e1e Fixed keyboard navigation in treeview 2011-07-03 12:33:18 +00:00
Ralf Becker
03e379e570 * jQuery: changed $ to $j to work around mootools use in Joomla templates and other js code in imported projects
required to change $ --> $j:
phpgwapi/*
jdots/*
etemplate/*
stylite/*
felamimail/*
admin/*
news_admin/*
projectmanager/*
importexport/*
infolog/*
ranking/*

required, but not automatic:
importexport/setup/etemplates.inc.php
phpgwapi/js/jquery/*

negative, not to touch or revert later:
phpgwapi/inc/savant2/Savant2/Savant2_Compiler_basic.php:		'(\$(.+))'            => 'print $1',
phpgwapi/js/dhtmlxtree/libCompiler/core.js
sitemgr/*
phpfreechat/*
gallery/*
activesync/include/smb.php:        '^\tIPC\\\$(.*)[ ]+IPC' => 'skip',
etemplate/inc/class.bo_merge.inc.php: if ($this->table_plugins && preg_match_all('/\\$\\$table\\/([A-Za-z0-9_]+)\\$\\$(.*?)\\$\\$endtable\\$\\$/s',$content,$matches,PREG_SET_ORDER))

find phpgwapi jdots etemplate stylite felamimail admin news_admin projectmanager importexport infolog ranking \
	\( -name '*.php' -o -name '*.js' \) -exec grep -q '\$(' {} \; -print \
	-exec sed -i '' 's|\$(|$j(|g' {} \;
svn revert phpgwapi/inc/savant2/Savant2/Savant2_Compiler_basic.php phpgwapi/js/dhtmlxtree/libCompiler/core.js \
	importexport/setup/etemplates.inc.php phpgwapi/js/jquery/jquery.js etemplate/inc/class.bo_merge.inc.php
	
additional changes:
phpgwapi/js/jquery/jquery.js:	window.$ --> window.$j
phpgwapi/js/egw_json.js:291	this.request = $j.ajax({url: this.url,
jdots/templates/jdots/head.tpl:59			$j(document).ready(function() {
phpgwapi/js/egw_action/egw_grid_view.js: $.browser --> $j.browser
importexport/setup/etemplates.inc.php: etemplate editor importexport.wizard_basic_export_csv.choose_fields onclick of check icon changed
phpgwapi/js/egw_action/tests/*.html
phpgwapi/js/egw_action/tests/js/jquery.js:	window.$ --> window.$j
2011-07-03 09:00:36 +00:00
Andreas Stöckel
a81e83a6e6 Prevented grid from loading all data when it is not visible 2011-06-26 15:44:08 +00:00