mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 01:01:26 +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) {
|
function getExtraClasses(note) {
|
||||||
assertArguments(note);
|
assertArguments(note);
|
||||||
|
|
||||||
let extraClasses = '';
|
const extraClasses = [];
|
||||||
|
|
||||||
if (note.is_protected) {
|
if (note.is_protected) {
|
||||||
extraClasses += ",protected";
|
extraClasses.push("protected");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (childToParents[note.note_id].length > 1) {
|
if (childToParents[note.note_id].length > 1) {
|
||||||
extraClasses += ",multiple-parents";
|
extraClasses.push("multiple-parents");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (extraClasses.startsWith(",")) {
|
return extraClasses.join(" ");
|
||||||
extraClasses = extraClasses.substr(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
return extraClasses;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepareNoteTreeInner(parentNoteId) {
|
function prepareNoteTreeInner(parentNoteId) {
|
||||||
|
|
Loading…
Reference in a new issue