mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Merge pull request #2926 from storytouch/addAuthorOnRemoveAttributeOnLine
Update author when removing line attribute from line
This commit is contained in:
commit
8df8228a36
1 changed files with 3 additions and 0 deletions
|
@ -278,6 +278,9 @@ AttributeManager.prototype = _(AttributeManager.prototype).extend({
|
||||||
if (attrib[0] === attributeName && (!attributeValue || attrib[0] === attributeValue)){
|
if (attrib[0] === attributeName && (!attributeValue || attrib[0] === attributeValue)){
|
||||||
found = true;
|
found = true;
|
||||||
return [attributeName, ''];
|
return [attributeName, ''];
|
||||||
|
}else if (attrib[0] === 'author'){
|
||||||
|
// update last author to make changes to line attributes on this line
|
||||||
|
return [attributeName, this.author];
|
||||||
}
|
}
|
||||||
return attrib;
|
return attrib;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue