mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:28:53 +01:00
Make sure to clean up the duplicated class
This commit is contained in:
parent
f776b523ee
commit
d1c0b972a6
@ -500,6 +500,7 @@ app.classes.mail = AppJS.extend(
|
||||
case 'label3':
|
||||
case 'label4':
|
||||
case 'label5':
|
||||
case 'flagged':
|
||||
if (unset)
|
||||
{
|
||||
this.mail_removeRowClass(msg, flag);
|
||||
@ -3472,8 +3473,12 @@ app.classes.mail = AppJS.extend(
|
||||
var classes = dataElem.data['class'] || "";
|
||||
classes = classes.split(' ');
|
||||
if(classes.indexOf(_class) >= 0)
|
||||
{
|
||||
for(var c in classes)
|
||||
{
|
||||
classes.splice(classes.indexOf(_class),1);
|
||||
if (classes.indexOf(_class) < 0) break;
|
||||
}
|
||||
dataElem.data['class'] = classes.join(' ');
|
||||
|
||||
// need to update flags too
|
||||
|
Loading…
Reference in New Issue
Block a user