Change blank filter label to 'No filters'

This commit is contained in:
Nathan Gray 2013-03-13 15:23:21 +00:00
parent 72fcd52f2d
commit 86321fa998
2 changed files with 4 additions and 4 deletions

View File

@ -844,7 +844,7 @@ class etemplate_widget_nextmatch extends etemplate_widget
$pref_prefix = 'favorite_';
$filters = array(
'blank' => array(
'name' => lang('Blank'),
'name' => lang('No filters'),
'filters' => array()
)
);

View File

@ -139,14 +139,14 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader],{
// Save as default favorite - used when you click the button
self.egw().set_preference(self.options.app,self.options.favorite_preference,$j(this).val());
preferred = $j(this).val();
self.preferred = $j(this).val();
// Update sidebox, if there
if(self.sidebox_target.length)
{
self.sidebox_target.find(".ui-icon-heart")
.replaceWith("<img class='sideboxstar'/>");
$j("li#"+preferred+" img",self.sidebox_target)
$j("li#"+self.preferred+" img",self.sidebox_target)
.replaceWith("<div class='ui-icon ui-icon-heart'/>");
}
@ -191,7 +191,7 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader],{
// Default blank filter
var stored_filters = {
'blank': {
name: this.egw().lang("Blank"),
name: this.egw().lang("No filters"),
filters: {},
}
};