diff options
author | Andreas Gohr <andi@splitbrain.org> | 2024-10-14 13:47:50 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2024-10-14 13:47:50 +0200 |
commit | d2fda519a7918544348b6e375522558e6ee2928c (patch) | |
tree | 6db8f3013922b9bd938b04ff027b0e6254b297ed /lib/scripts/linkwiz.js | |
parent | 8dcd6c40ec5247446641af9801af86d78bcfded9 (diff) | |
download | dokuwiki-d2fda519a7918544348b6e375522558e6ee2928c.tar.gz dokuwiki-d2fda519a7918544348b6e375522558e6ee2928c.zip |
doc blocks in link wizard
Diffstat (limited to 'lib/scripts/linkwiz.js')
-rw-r--r-- | lib/scripts/linkwiz.js | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/lib/scripts/linkwiz.js b/lib/scripts/linkwiz.js index bdc825e0e..6d44d03aa 100644 --- a/lib/scripts/linkwiz.js +++ b/lib/scripts/linkwiz.js @@ -1,3 +1,5 @@ +/* global jQuery, DOKU_BASE, DOKU_UHC, JSINFO, LANG, DWgetSelection, pasteText */ + /** * The Link Wizard * @@ -5,15 +7,23 @@ * @author Pierre Spring <pierre.spring@caillou.ch> */ class LinkWizard { - constructor() { - this.$wiz = null; - this.$entry = null; - this.result = null; - this.timer = null; - this.textArea = null; - this.selected = null; - this.selection = null; - } + + /** @var {jQuery} $wiz The wizard dialog */ + $wiz = null; + /** @var {jQuery} $entry The input field to interact with the wizard*/ + $entry = null; + /** @var {HTMLDivElement} result The result output div */ + result = null; + /** @var {TimerHandler} timer Used to debounce the autocompletion */ + timer = null; + /** @var {HTMLTextAreaElement} textArea The text area of the editor into which links are inserted */ + textArea = null; + /** @var {int} selected The index of the currently selected object in the result list */ + selected = -1; + /** @var {Object} selection A DokuWiki selection object holding text positions in the editor */ + selection = null; + /** @var {Object} val Mechanism to modify the resulting links. See 935ecb0ef751ac1d658932316e06410e70c483e0 */ + val = null; /** * Initialize the LinkWizard by creating the needed HTML |