mirror of
https://github.com/zadam/trilium.git
synced 2024-12-25 08:43:03 +08:00
classes in extraClasses need to be separated by space, not comma
This commit is contained in:
parent
12f70b28c8
commit
583123ab0a
1 changed files with 4 additions and 8 deletions
|
@ -157,21 +157,17 @@ const noteTree = (function() {
|
|||
function getExtraClasses(note) {
|
||||
assertArguments(note);
|
||||
|
||||
let extraClasses = '';
|
||||
const extraClasses = [];
|
||||
|
||||
if (note.is_protected) {
|
||||
extraClasses += ",protected";
|
||||
extraClasses.push("protected");
|
||||
}
|
||||
|
||||
if (childToParents[note.note_id].length > 1) {
|
||||
extraClasses += ",multiple-parents";
|
||||
extraClasses.push("multiple-parents");
|
||||
}
|
||||
|
||||
if (extraClasses.startsWith(",")) {
|
||||
extraClasses = extraClasses.substr(1);
|
||||
}
|
||||
|
||||
return extraClasses;
|
||||
return extraClasses.join(" ");
|
||||
}
|
||||
|
||||
function prepareNoteTreeInner(parentNoteId) {
|
||||
|
|
Loading…
Reference in a new issue