attribute fixes

This commit is contained in:
zadam
2020-08-12 23:39:05 +02:00
parent eaac65142f
commit 1810116a34
5 changed files with 16 additions and 7 deletions

View File

@@ -120,6 +120,13 @@ function init() {
}
};
$.fn.getSelectedNoteId = function () {
const notePath = $(this).getSelectedNotePath();
const chunks = notePath.split('/');
return chunks.length >= 1 ? chunks[chunks.length - 1] : null;
}
$.fn.setSelectedNotePath = function (notePath) {
notePath = notePath || "";