Unindent doc-comments
This commit is contained in:
parent
ecf34769ad
commit
329fa55af5
|
@ -172,12 +172,12 @@ function html_select($name, $options, $value = "", $onchange = true, $labelled_b
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Generate HTML <select> or <input> if $options are empty
|
/** Generate HTML <select> or <input> if $options are empty
|
||||||
* @param string
|
* @param string
|
||||||
* @param array
|
* @param array
|
||||||
* @param string
|
* @param string
|
||||||
* @param string
|
* @param string
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function select_input($attrs, $options, $value = "", $placeholder = "") {
|
function select_input($attrs, $options, $value = "", $placeholder = "") {
|
||||||
return ($options
|
return ($options
|
||||||
? "<select$attrs><option value=''>$placeholder" . optionlist($options, $value, true) . "</select>"
|
? "<select$attrs><option value=''>$placeholder" . optionlist($options, $value, true) . "</select>"
|
||||||
|
|
|
@ -87,20 +87,20 @@ function selectValue(select) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Verify if element has a specified tag name
|
/** Verify if element has a specified tag name
|
||||||
* @param HTMLElement
|
* @param HTMLElement
|
||||||
* @param string regular expression
|
* @param string regular expression
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function isTag(el, tag) {
|
function isTag(el, tag) {
|
||||||
var re = new RegExp('^(' + tag + ')$', 'i');
|
var re = new RegExp('^(' + tag + ')$', 'i');
|
||||||
return re.test(el.tagName);
|
return re.test(el.tagName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get parent node with specified tag name
|
/** Get parent node with specified tag name
|
||||||
* @param HTMLElement
|
* @param HTMLElement
|
||||||
* @param string regular expression
|
* @param string regular expression
|
||||||
* @return HTMLElement
|
* @return HTMLElement
|
||||||
*/
|
*/
|
||||||
function parentTag(el, tag) {
|
function parentTag(el, tag) {
|
||||||
while (el && !isTag(el, tag)) {
|
while (el && !isTag(el, tag)) {
|
||||||
el = el.parentNode;
|
el = el.parentNode;
|
||||||
|
@ -218,9 +218,9 @@ function tableClick(event, click) {
|
||||||
var lastChecked;
|
var lastChecked;
|
||||||
|
|
||||||
/** Shift-click on checkbox for multiple selection.
|
/** Shift-click on checkbox for multiple selection.
|
||||||
* @param MouseEvent
|
* @param MouseEvent
|
||||||
* @param HTMLInputElement
|
* @param HTMLInputElement
|
||||||
*/
|
*/
|
||||||
function checkboxClick(event, el) {
|
function checkboxClick(event, el) {
|
||||||
if (!el.name) {
|
if (!el.name) {
|
||||||
return;
|
return;
|
||||||
|
@ -360,9 +360,9 @@ function selectSearchSearch(el) {
|
||||||
|
|
||||||
|
|
||||||
/** Toggles column context menu
|
/** Toggles column context menu
|
||||||
* @param HTMLElement
|
* @param HTMLElement
|
||||||
* @param [string] extra class name
|
* @param [string] extra class name
|
||||||
*/
|
*/
|
||||||
function columnMouse(el, className) {
|
function columnMouse(el, className) {
|
||||||
var spans = qsa('span', el);
|
var spans = qsa('span', el);
|
||||||
for (var i=0; i < spans.length; i++) {
|
for (var i=0; i < spans.length; i++) {
|
||||||
|
@ -375,8 +375,8 @@ function columnMouse(el, className) {
|
||||||
|
|
||||||
|
|
||||||
/** Fill column in search field
|
/** Fill column in search field
|
||||||
* @param string
|
* @param string
|
||||||
*/
|
*/
|
||||||
function selectSearch(name) {
|
function selectSearch(name) {
|
||||||
var el = qs('#fieldset-search');
|
var el = qs('#fieldset-search');
|
||||||
el.className = '';
|
el.className = '';
|
||||||
|
|
Loading…
Reference in a new issue