mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
help buttons and existing custom HTML attribute refactoring to data-*
This commit is contained in:
@@ -15,7 +15,7 @@ async function showDialog() {
|
||||
|
||||
await $dialog.dialog({
|
||||
modal: true,
|
||||
width: 500
|
||||
width: 600
|
||||
});
|
||||
|
||||
const currentNode = treeService.getCurrentNode();
|
||||
|
||||
@@ -63,10 +63,10 @@ $list.on('change', () => {
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', "a[action='note-revision']", event => {
|
||||
$(document).on('click', "a[data-action='note-revision']", event => {
|
||||
const linkEl = $(event.target);
|
||||
const noteId = linkEl.attr('note-path');
|
||||
const noteRevisionId = linkEl.attr('note-revision-id');
|
||||
const noteId = linkEl.attr('data-note-path');
|
||||
const noteRevisionId = linkEl.attr('data-note-revision-id');
|
||||
|
||||
showNoteRevisionsDialog(noteId, noteRevisionId);
|
||||
|
||||
|
||||
@@ -30,9 +30,9 @@ async function showDialog() {
|
||||
const revLink = $("<a>", {
|
||||
href: 'javascript:',
|
||||
text: 'rev'
|
||||
}).attr('action', 'note-revision')
|
||||
.attr('note-path', change.noteId)
|
||||
.attr('note-revision-id', change.noteRevisionId);
|
||||
}).attr('data-action', 'note-revision')
|
||||
.attr('data-note-path', change.noteId)
|
||||
.attr('data-note-revision-id', change.noteRevisionId);
|
||||
|
||||
let noteLink;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user