Skip to content

Commit

Permalink
luci-base: docs house-keeping
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Donald <newtwen@gmail.com>
  • Loading branch information
systemcrash committed Mar 6, 2024
1 parent 452e813 commit f630f22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/luci-base/htdocs/luci-static/resources/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -3833,7 +3833,7 @@ var CBIDynamicList = CBIValue.extend(/** @lends LuCI.form.DynamicList.prototype
* @classdesc
*
* The `ListValue` class implements a simple static HTML select element
* allowing the user chose a single value from a set of predefined choices.
* allowing the user to choose a single value from a set of predefined choices.
* It builds upon the {@link LuCI.ui.Select} widget.
*
* @param {LuCI.form.Map|LuCI.form.JSONMap} form
Expand Down
10 changes: 5 additions & 5 deletions modules/luci-base/htdocs/luci-static/resources/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ var UIElement = baseclass.extend(/** @lends LuCI.ui.AbstractElement.prototype */
},

/**
* Setup listeners for native DOM events that may update the widget value.
* Set up listeners for native DOM events that may update the widget value.
*
* Sets up event handlers on the given target DOM node for the given event
* names which may cause the input value to update, such as `keyup` or
Expand Down Expand Up @@ -265,7 +265,7 @@ var UIElement = baseclass.extend(/** @lends LuCI.ui.AbstractElement.prototype */
},

/**
* Setup listeners for native DOM events that may change the widget value.
* Set up listeners for native DOM events that may change the widget value.
*
* Sets up event handlers on the given target DOM node for the given event
* names which may cause the input value to change completely, such as
Expand All @@ -292,7 +292,7 @@ var UIElement = baseclass.extend(/** @lends LuCI.ui.AbstractElement.prototype */
},

/**
* Render the widget, setup event listeners and return resulting markup.
* Render the widget, set up event listeners and return resulting markup.
*
* @instance
* @memberof LuCI.ui.AbstractElement
Expand Down Expand Up @@ -3506,7 +3506,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
tooltipDiv = document.body.appendChild(
dom.create('div', { class: 'cbi-tooltip' }));

/* setup old aliases */
/* set up old aliases */
L.showModal = this.showModal;
L.hideModal = this.hideModal;
L.showTooltip = this.showTooltip;
Expand Down Expand Up @@ -3577,7 +3577,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
* behaviour. It has no effect if no modal dialog is currently open.
*
* Note that this function is stand-alone, it does not rely on `this` and
* will not invoke other class functions so it suitable to be used as event
* will not invoke other class functions so it is suitable to be used as event
* handler as-is without the need to bind it first.
*/
hideModal: function() {
Expand Down

0 comments on commit f630f22

Please sign in to comment.