Fix multiple delete confirmations

This commit is contained in:
Nathan Gray 2013-03-18 15:43:22 +00:00
parent 6204999b19
commit 3e09f30480
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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("<span class='ui-state-active'/>");})
.on("mouseleave","div.ui-icon-trash", function() {$j(this).unwrap();})
.on("click","div.ui-icon-trash", this, this.delete_favorite)