Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
c3f94a8e
Commit
c3f94a8e
authored
8 years ago
by
Gerrit Uitslag
Browse files
Options
Downloads
Patches
Plain Diff
add JSDocs
parent
b4c97c1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/scripts/edit.js
+17
-8
17 additions, 8 deletions
lib/scripts/edit.js
with
17 additions
and
8 deletions
lib/scripts/edit.js
+
17
−
8
View file @
c3f94a8e
...
@@ -7,9 +7,16 @@
...
@@ -7,9 +7,16 @@
/**
/**
* Creates a toolbar button through the DOM
* Creates a toolbar button through the DOM
* Called for each entry of toolbar definition array (built by inc/toolbar.php and extended via js)
*
*
* Style the buttons through the toolbutton class
* Style the buttons through the toolbutton class
*
*
* @param {string} icon image filename, relative to folder lib/images/toolbar/
* @param {string} label title of button, show on mouseover
* @param {string} key hint in title of button for access key
* @param {string} id id of button, and '<id>_ico' of icon
* @param {string} classname for styling buttons
*
* @author Andreas Gohr <andi@splitbrain.org>
* @author Andreas Gohr <andi@splitbrain.org>
* @author Michal Rezler <m.rezler@centrum.cz>
* @author Michal Rezler <m.rezler@centrum.cz>
*/
*/
...
@@ -57,10 +64,10 @@ function createToolButton(icon,label,key,id,classname){
...
@@ -57,10 +64,10 @@ function createToolButton(icon,label,key,id,classname){
* class or the picker buttons with the pickerbutton class. Picker
* class or the picker buttons with the pickerbutton class. Picker
* windows are appended to the body and created invisible.
* windows are appended to the body and created invisible.
*
*
* @param string id the ID to assign to the picker
* @param
{
string
}
id the ID to assign to the picker
* @param
a
rray props the properties for the picker
* @param
{A
rray
}
props the properties for the picker
* @param string edid the ID of the textarea
* @param
{
string
}
edid the ID of the textarea
* @r
t
eurn DOMobject the created picker
* @re
t
urn DOMobject the created picker
* @author Andreas Gohr <andi@splitbrain.org>
* @author Andreas Gohr <andi@splitbrain.org>
*/
*/
function
createPicker
(
id
,
props
,
edid
){
function
createPicker
(
id
,
props
,
edid
){
...
@@ -126,10 +133,10 @@ function pickerInsert(text,edid){
...
@@ -126,10 +133,10 @@ function pickerInsert(text,edid){
/**
/**
* Add button action for signature button
* Add button action for signature button
*
*
* @param
DOMElement
btn Button element to add the action to
* @param
{jQuery} $
btn Button element to add the action to
* @param
a
rray
props Associative array of button properties
* @param
{A
rray
}
props
Associative array of button properties
* @param string
edid ID of the editor textarea
* @param
{
string
}
edid
ID of the editor textarea
* @return
boolean If button should be appended
* @return
{string} picker id for aria-controls attribute
* @author Gabriel Birke <birke@d-scribe.de>
* @author Gabriel Birke <birke@d-scribe.de>
*/
*/
function
addBtnActionSignature
(
$btn
,
props
,
edid
)
{
function
addBtnActionSignature
(
$btn
,
props
,
edid
)
{
...
@@ -146,6 +153,8 @@ function addBtnActionSignature($btn, props, edid) {
...
@@ -146,6 +153,8 @@ function addBtnActionSignature($btn, props, edid) {
/**
/**
* Determine the current section level while editing
* Determine the current section level while editing
*
*
* @param {string} textboxId ID of the text field
*
* @author Andreas Gohr <gohr@cosmocode.de>
* @author Andreas Gohr <gohr@cosmocode.de>
*/
*/
function
currentHeadlineLevel
(
textboxId
){
function
currentHeadlineLevel
(
textboxId
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment