mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
added clear function to egwActionObject, reverted change done by klaus leithoff in egw_action.js as it caused serveral problems, fixed problem with no actions being executable when all action objects were selected using the setSelectAll function, added iframeFix to egw_action_dragdrop.js, made draggedOver style working for all tables.
This commit is contained in:
parent
9fe576f050
commit
2e84fb63e2
@ -725,6 +725,15 @@ egwActionObject.prototype.insertObject = function(_index, _id, _iface, _flags)
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes all children of the egwActionObject
|
||||
*/
|
||||
egwActionObject.prototype.clear = function() {
|
||||
this.children = [];
|
||||
this.selectedChildren = [];
|
||||
this.focusedChild = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Searches for the root object in the action object tree and returns it.
|
||||
*/
|
||||
@ -816,7 +825,9 @@ egwActionObject.prototype.getAllSelected = function()
|
||||
if (!this.children[i].getAllSelected())
|
||||
return false;
|
||||
}
|
||||
if (this.children.length == 0) return false;
|
||||
// This introduced various bugs inside the egwAction system and breaks the
|
||||
// recursion abortion case of this function!
|
||||
// if (this.children.length == 0) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1403,7 +1414,7 @@ egwActionObject.prototype._getLinks = function(_objs, _actionType)
|
||||
for (var i = 0; i < _objs.length; i++)
|
||||
{
|
||||
var obj = _objs[i];
|
||||
if (obj.triggerCallback())
|
||||
if (!egwBitIsSet(obj.flags, EGW_AO_FLAG_IS_CONTAINER) && obj.triggerCallback())
|
||||
{
|
||||
testedSelected.push(obj);
|
||||
|
||||
|
@ -125,7 +125,8 @@ function egwDragActionImplementation()
|
||||
// component
|
||||
"refreshPositions": true,
|
||||
"scroll": false,
|
||||
"containment": "document"
|
||||
"containment": "document",
|
||||
"iframeFix": true
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -576,7 +576,8 @@ Preferences tabs
|
||||
background-color: #b7c3ff;
|
||||
}
|
||||
|
||||
.egwGridView_grid tr.draggedOver td {
|
||||
tr.draggedOver td {
|
||||
/*.egwGridView_grid tr.draggedOver td {*/
|
||||
background-color: #ffd09c !important;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user