forked from extern/egroupware
If select all + long task, fetch all from the server or else it will just run on what's in the grid.
This commit is contained in:
parent
38e6e353fd
commit
d2b2f71058
@ -108,6 +108,27 @@ function nm_action(_action, _senders, _target, _ids)
|
||||
// egw_open will be used instead.
|
||||
if(idsArr.length > 1 || typeof _action.data.egw_open == 'undefined')
|
||||
{
|
||||
if(_ids.all)
|
||||
{
|
||||
|
||||
var nextmatch = mgr.data.nextmatch;
|
||||
if(nextmatch && nextmatch.controller && nextmatch.controller._grid &&nextmatch.controller._grid.getTotalCount() > idsArr.length)
|
||||
{
|
||||
// Need to actually fetch all (TODO: just ids) to do this client side
|
||||
nextmatch.controller.dataFetch({start:0,num_rows:-1}, function(data) {
|
||||
var idsArr = [];
|
||||
if(data && data.order)
|
||||
{
|
||||
for(var i = 0; i < data.order.length; i++)
|
||||
{
|
||||
idsArr[i] = data.order[i].split("::").pop();
|
||||
}
|
||||
et2_dialog.long_task(null,_action.data.message||_action.caption,_action.data.title,_action.data.menuaction,idsArr);
|
||||
}
|
||||
},_action);
|
||||
return;
|
||||
}
|
||||
}
|
||||
et2_dialog.long_task(null,_action.data.message||_action.caption,_action.data.title,_action.data.menuaction,idsArr);
|
||||
break;
|
||||
}
|
||||
|
@ -1160,6 +1160,9 @@ div.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset button {
|
||||
.et2_prompt #value {
|
||||
width: 100%;
|
||||
}
|
||||
.long_task .message {
|
||||
height: inherit;
|
||||
}
|
||||
/**
|
||||
* et2_taglist
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user