From 4c54745cbb56fe50ed88a4b209fa583fe2948162 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 10 Apr 2013 08:00:31 +0000 Subject: [PATCH] Allow favorites from multiple apps to coexist --- etemplate/inc/class.etemplate_widget_nextmatch.inc.php | 4 ++-- etemplate/js/et2_extension_nextmatch.js | 3 ++- etemplate/js/et2_widget_favorites.js | 2 +- etemplate/templates/default/etemplate2.css | 10 +++++----- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php index 4f517c4233..2d3f22d748 100644 --- a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php +++ b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php @@ -846,7 +846,7 @@ class etemplate_widget_nextmatch extends etemplate_widget public static function favorite_list($app, $default) { if(!$app) return ''; - $target = 'favorite_sidebox'; + $target = 'favorite_sidebox_'.$app; $pref_prefix = 'favorite_'; $filters = array( 'blank' => array( @@ -858,7 +858,7 @@ class etemplate_widget_nextmatch extends etemplate_widget $default_filter = $GLOBALS['egw_info']['user']['preferences'][$app][$default]; if(!$default_filter) $default_filter = "blank"; - $html = "