disable favories dropdown button if not called from infolog (eg. CRM view)

This commit is contained in:
Ralf Becker 2014-03-10 19:47:09 +00:00
parent bb8608d694
commit 94f468095d
3 changed files with 12 additions and 4 deletions

View File

@ -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;

View File

@ -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');

View File

@ -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%;