forked from extern/egroupware
Add hrules to sidebox menus
This commit is contained in:
parent
df8251603f
commit
f89c8cfb03
@ -61,6 +61,7 @@ class addressbook_hooks
|
||||
'Advanced search' => "javascript:egw_openWindowCentered2('".
|
||||
Egw::link('/index.php',array('menuaction' => 'addressbook.addressbook_ui.extSearch'),false).
|
||||
"','_blank',870,610,'yes')",
|
||||
['text'=>'--'],
|
||||
'Placeholders' => Egw::link('/index.php','menuaction=api.EGroupware\\Api\\Contacts\\Merge.show_replacements')
|
||||
);
|
||||
display_sidebox($appname,lang('Addressbook menu'),$file);
|
||||
|
@ -700,6 +700,12 @@ abstract class Ajax extends Api\Framework
|
||||
$var['lang_item'] = lang($item_text);
|
||||
$var['item_link'] = $item_link;
|
||||
}
|
||||
if($var['lang_item'] == '--')
|
||||
{
|
||||
unset($var['icon_or_star']);
|
||||
$var['item_link'] = '';
|
||||
$var['lang_item'] = '<hr />';
|
||||
}
|
||||
$current_menu['entries'][] = $var;
|
||||
}
|
||||
|
||||
|
@ -3246,6 +3246,11 @@ tr.disableIfNoEPL {
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
.egw_fw_ui_sidemenu_entry_content hr {
|
||||
/* HR in sidebox */
|
||||
border-top: 1px solid black;
|
||||
margin: 3px 5px 0px 5px;
|
||||
}
|
||||
.inactive_blur > * {opacity: 0.4; filter:blur(2px); pointer-events: none;}
|
||||
|
||||
.et2_editable {
|
||||
|
@ -77,8 +77,9 @@ class filemanager_hooks
|
||||
{
|
||||
$file['Startfolder']= Egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$file_prefs['startfolder'],'ajax'=>'true'));
|
||||
}
|
||||
$file['Placeholders'] = Egw::link('/index.php','menuaction=filemanager.filemanager_merge.show_replacements');
|
||||
$file['Shared files'] = Egw::link('/index.php','menuaction=filemanager.filemanager_shares.index&ajax=true');
|
||||
$file[] = ['text'=>'--'];
|
||||
$file['Placeholders'] = Egw::link('/index.php','menuaction=filemanager.filemanager_merge.show_replacements');
|
||||
display_sidebox(self::$appname,$title,$file);
|
||||
}
|
||||
if ($GLOBALS['egw_info']['user']['apps']['admin']) self::admin(self::$appname);
|
||||
|
@ -165,6 +165,7 @@ class infolog_hooks
|
||||
'no_lang' => true,
|
||||
'link' => "javascript:app.infolog.add_link_sidemenu();"
|
||||
),
|
||||
['text'=>'--'],
|
||||
'Placeholders' => Egw::link('/index.php','menuaction=infolog.infolog_merge.show_replacements')
|
||||
);
|
||||
display_sidebox($appname,$GLOBALS['egw_info']['apps']['infolog']['title'].' '.lang('Menu'),$file);
|
||||
|
@ -126,6 +126,7 @@ class timesheet_hooks
|
||||
'link' => "javascript:egw.open('','$appname','add')"
|
||||
),
|
||||
);
|
||||
$file[] = ['text'=>'--'];
|
||||
$file['Placeholders'] = Egw::link('/index.php','menuaction=timesheet.timesheet_merge.show_replacements');
|
||||
display_sidebox($appname,$GLOBALS['egw_info']['apps'][$appname]['title'].' '.lang('Menu'),$file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user