mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
attribute fixes
This commit is contained in:
@@ -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 || "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user