Author: igel457
New Revision: 35088
URL: http://www.egroupware.org/viewvc/egroupware?rev=35088&view=rev
Log:
Added forgotten aoi file for dhtmlx menus
Added:
trunk/phpgwapi/js/egw_action/egw_dragdrop_dhtmlx_tree.js
Modified:
trunk/phpgwapi/js/egw_json.js
Added: trunk/phpgwapi/js/egw_action/egw_dragdrop_dhtmlx_tree.js
URL: http://www.egroupware.org/viewvc/egroupware/trunk/phpgwapi/js/egw_action/egw_dragdrop_dhtmlx_tree.js?rev=35088&view=auto
— trunk/phpgwapi/js/egw_action/egw_dragdrop_dhtmlx_tree.js (added)
+++ trunk/phpgwapi/js/egw_action/egw_dragdrop_dhtmlx_tree.js Tue May 31 22:10:30 2011
@@ -1,0 +1,54 @@
+/**
-
- eGroupWare egw_dragdrop_dhtmlxmenu - egw action framework
-
-
- @author Andreas Stöckel as@stylite.de
-
- @copyright 2011 by Andreas Stöckel
-
- @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
-
- @package egw_action
-
- @version $Id:$
- */
+/**
+* This file contains an egw_actionObjectInterface which allows a dhtmlx tree
+* row to be a drag target and contains a function which transforms a complete
+* dhtmlx tree into egw_actionObjects
+*/
+
+function dhtmlxTree_getNode(_tree, _itemId) {
- var node = _tree._globalIdStorageFind(_itemId);
- if (node != null)
- {
-
// Get the outer html table node of the tree node - return the first -
// "tr" child of the element -
return $("tr:first", node.htmlNode); - }
+}
+// An action object interface for an dhtmlxTree entry - it only contains the
+// code needed for drag/drop handling
+function dhtmlxtreeItemAOI(_tree, _itemId)
+{
- var aoi = new egwActionObjectInterface();
- // Retrieve the actual node from the tree
- aoi.node = dhtmlxTree_getNode(_tree, _itemId);
- aoi.doGetDOMNode = function() {
-
return aoi.node; - }
- aoi.doTriggerEvent = function(_event) {
-
if (_event == EGW_AI_DRAG_OVER) -
{ -
$(this.node).addClass("draggedOver"); -
} -
if (_event == EGW_AI_DRAG_OUT) -
{ -
$(this.node).removeClass("draggedOver"); -
} - }
- return aoi;
+}
Modified: trunk/phpgwapi/js/egw_json.js
URL: http://www.egroupware.org/viewvc/egroupware/trunk/phpgwapi/js/egw_json.js?rev=35088&r1=35087&r2=35088&view=diff
— trunk/phpgwapi/js/egw_json.js (original)
+++ trunk/phpgwapi/js/egw_json.js Tue May 31 22:10:30 2011
@@ -410,6 +410,7 @@
throw ‘Invalid parameters’;
break;
case ‘redirect’:
-
console.log(res.data.url); if (typeof res.data.url == 'string' && typeof res.data.global == 'boolean') {
Simplify data backup and recovery for your virtual environment with vRanger.
Installation’s a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It’s vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs