mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-02 19:01:30 +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);
|
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()) {
|
if ($el.hasClass("note-autocomplete-input") || utils.isMobile()) {
|
||||||
// clear any event listener added in previous invocation of this function
|
// clear any event listener added in previous invocation of this function
|
||||||
$el.off('autocomplete:noteselected');
|
$el.off('autocomplete:noteselected');
|
||||||
|
@ -6,6 +6,8 @@ import FAttribute from "../../entities/fattribute.js";
|
|||||||
|
|
||||||
interface ActionDefinition {
|
interface ActionDefinition {
|
||||||
script: string;
|
script: string;
|
||||||
|
relationName: string;
|
||||||
|
targetNoteId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default abstract class AbstractBulkAction {
|
export default abstract class AbstractBulkAction {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user