From 3e09f304801531cec8f2c7bae38fd07a03b5fb67 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 18 Mar 2013 15:43:22 +0000 Subject: [PATCH] Fix multiple delete confirmations --- etemplate/inc/class.etemplate_widget_nextmatch.inc.php | 3 ++- etemplate/js/et2_widget_favorites.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php index 2684e51740..f2807a2753 100644 --- a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php +++ b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php @@ -846,7 +846,8 @@ class etemplate_widget_nextmatch extends etemplate_widget $filters = array( 'blank' => array( 'name' => lang('No filters'), - 'filters' => array() + 'filters' => array(), + 'group' => true ) ); $default_filter = $GLOBALS['egw_info']['user']['preferences'][$app][$default]; diff --git a/etemplate/js/et2_widget_favorites.js b/etemplate/js/et2_widget_favorites.js index 89197498d7..5fae793935 100644 --- a/etemplate/js/et2_widget_favorites.js +++ b/etemplate/js/et2_widget_favorites.js @@ -122,6 +122,7 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader],{ if(this.sidebox_target.length) { this.sidebox_target + .off("mouseenter mouseleave click") .on("mouseenter","div.ui-icon-trash", function() {$j(this).wrap("");}) .on("mouseleave","div.ui-icon-trash", function() {$j(this).unwrap();}) .on("click","div.ui-icon-trash", this, this.delete_favorite)