convert more note details to new style

This commit is contained in:
zadam
2019-05-04 00:16:41 +02:00
parent 39093cbc4c
commit ff41904d72
8 changed files with 687 additions and 645 deletions

View File

@@ -121,12 +121,12 @@ async function loadNoteDetail(noteId, newTab = false) {
let ctx;
if (noteContexts.length === 0 || newTab) {
const tabContent = $("#note-tab-content-template").clone();
const $tabContent = $(".note-tab-content-template").clone();
tabContent.removeAttr('id');
tabContent.attr('data-note-id', noteId);
$tabContent.removeClass('note-tab-content-template');
$tabContent.attr('data-note-id', noteId);
$noteTabContentsContainer.append(tabContent);
$noteTabContentsContainer.append($tabContent);
// if it's a new tab explicitly by user then it's in background
ctx = new NoteContext(loadedNote, newTab);