fix problem on client side counter decrease

This commit is contained in:
Klaus Leithoff 2014-02-11 12:18:03 +00:00
parent e7206aa071
commit d0b72178f7

View File

@ -1034,7 +1034,8 @@ app.classes.mail = AppJS.extend(
ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]');
var _foldernode = ftree.getSelectedNode();
var counter = _foldernode.label.match(this._unseen_regexp);
var icounter = parseInt(counter[0].replace(' (','').replace(')',''));
var icounter = 0;
if ( counter ) icounter = parseInt(counter[0].replace(' (','').replace(')',''));
if (icounter>0)
{
var newcounter = icounter-1;