mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
disable favories dropdown button if not called from infolog (eg. CRM view)
This commit is contained in:
parent
bb8608d694
commit
94f468095d
@ -2016,7 +2016,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader,
|
||||
* additional fields/settings to add in to the favorite.
|
||||
*/
|
||||
_setup_favorites: function(filters) {
|
||||
if(typeof filters == "undefined")
|
||||
if(typeof filters == "undefined" || filters === false)
|
||||
{
|
||||
// No favorites configured
|
||||
return;
|
||||
|
@ -820,8 +820,16 @@ class infolog_ui
|
||||
//apply infolog_filter2_change javascript method (show/hide details each rows) over onchange filter2
|
||||
$values['nm']['filter2_onchange'] = "app.infolog.filter2_change();";
|
||||
|
||||
// disable favories dropdown button, if not running as infolog
|
||||
if ($called_as && $called_as != 'infolog')
|
||||
{
|
||||
$values['nm']['favorites'] = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Allow saving parent ID into favorites
|
||||
$values['nm']['favorites'] = array('action','action_id');
|
||||
}
|
||||
|
||||
// Allow add actions even when there's no rows
|
||||
$values['nm']['placeholder_actions'] = array('new');
|
||||
|
@ -11,7 +11,7 @@
|
||||
* @package infolog
|
||||
* @version $Id$
|
||||
*/
|
||||
/* $Id: app.css 45124 2014-01-14 13:48:11Z nathangray $ */
|
||||
/* $Id$ */
|
||||
.infolog_headertext {
|
||||
color: black;
|
||||
font-size: 120%;
|
||||
|
Loading…
Reference in New Issue
Block a user