mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-19 04:46:42 +02:00
Look in action children so placeholder actions can be in sub-levels
This commit is contained in:
@@ -527,13 +527,17 @@ var et2_nextmatch_controller = (function(){ "use strict"; return et2_dataview_co
|
|||||||
// Make sure that placeholder actions are defined and existed in client-side,
|
// Make sure that placeholder actions are defined and existed in client-side,
|
||||||
// otherwise do not set them as placeholder. for instance actions with
|
// otherwise do not set them as placeholder. for instance actions with
|
||||||
// attribute hideOnMobile do not get sent to client-side.
|
// attribute hideOnMobile do not get sent to client-side.
|
||||||
if (links.length > 0)
|
var action_search = function(current) {
|
||||||
|
if (typeof this._widget.options.actions[current] !== 'undefined') return true;
|
||||||
|
// Check children
|
||||||
|
for(var action in this._widget.options.actions)
|
||||||
{
|
{
|
||||||
for (var i=links.length-1; i >= 0; i--)
|
action = this._widget.options.actions[action];
|
||||||
{
|
if( action.children && action.children[current]) return true;
|
||||||
if (typeof this._widget.options.actions[links[i]] == 'undefined') links.splice(i,1);
|
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
links = links.filter(action_search, this);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user