mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-03 03:11:31 +08:00
chore(client/ts): port bulk_actions/add_relation
This commit is contained in:
parent
6f32f21ac4
commit
27ed750d48
@ -146,7 +146,7 @@ function fullTextSearch($el: JQuery<HTMLElement>, options: Options){
|
||||
setTimeout(() => { options.fastSearch = true; }, 100);
|
||||
}
|
||||
|
||||
function initNoteAutocomplete($el: JQuery<HTMLElement>, options: Options) {
|
||||
function initNoteAutocomplete($el: JQuery<HTMLElement>, options?: Options) {
|
||||
if ($el.hasClass("note-autocomplete-input") || utils.isMobile()) {
|
||||
// clear any event listener added in previous invocation of this function
|
||||
$el.off('autocomplete:noteselected');
|
||||
|
@ -6,6 +6,8 @@ import FAttribute from "../../entities/fattribute.js";
|
||||
|
||||
interface ActionDefinition {
|
||||
script: string;
|
||||
relationName: string;
|
||||
targetNoteId: string;
|
||||
}
|
||||
|
||||
export default abstract class AbstractBulkAction {
|
||||
|
Loading…
x
Reference in New Issue
Block a user