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