[ Index ]

PHP Cross Reference of MyBB 1.8.38

title

Body

[close]

/admin/jscripts/ -> peeker.js (summary)

Peeker controls the visibility of an element based on the value of an input Examples: new Peeker($('#myController'), $('#myDomain'), 1, false); new Peeker($('.myControllerNode'), $('#myDomain, #myDomain2'), 1, true); new Peeker($('#myController'), $('#nestedPeeker'), /works/, false); new Peeker($('#nestedPeeker'), $('#nestedPeekerChild'), /\d+/, false);

File Size: 104 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  Peeker()
  check()
  add_star()

Functions
Functions that are not part of a class:

Peeker(controller, domain, match, isNodelist)   X-Ref
Constructor
param: string ID of the controlling select menu
param: string ID of the thing to show/hide
param: regexp If this regexp matches value of the select menu, then the 'thing' will be shown
param: boolean Should be set to true for radio/checkboxes

check()   X-Ref
Checks the controller and shows/hide
return: void

add_star(id)   X-Ref
Add a "required" asterisk to a FormContainer row
param: string ID of the row



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref