mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
If user didn't select any records to export, select all
This commit is contained in:
parent
06626b4cfc
commit
785c484b4e
@ -136,7 +136,14 @@ class importexport_admin_prefs_sidebox_hooks
|
||||
}
|
||||
$prefix = 'document_';
|
||||
|
||||
$options = 'style="max-width:175px;" onchange="var window = egw_appWindow(\''.$appname.'\');console.log(window); var action = new window.egwAction(null,\''.$prefix.'\'+this.value);console.log(action); window.nm_action(action, window.egw_objectManager.selectedChildren); this.value = \'\'"';
|
||||
$options = 'style="max-width:175px;" onchange="var window = egw_appWindow(\''.$appname.'\');
|
||||
var action = new window.egwAction(null,\''.$prefix.'\'+this.value);
|
||||
if(window.egw_objectManager.selectedChildren.length == 0) {
|
||||
// Be nice and select all, if they forgot to select any
|
||||
window.egw_actionManager.getActionById(\'select_all\').set_checked(true);
|
||||
}
|
||||
window.nm_action(action, window.egw_objectManager.selectedChildren);
|
||||
this.value = \'\'"';
|
||||
$file[] = array(
|
||||
'text' => html::select('merge',false,array('' => lang('Export Spreadsheet')) + $file_list, true,$options),
|
||||
'noLang' => true,
|
||||
|
Loading…
Reference in New Issue
Block a user