core_form/showadvanced

A class to help show and hide advanced form content.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Classes

core_form/showadvanced

Methods

(inner) enhanceFieldset(fieldset) → {ShowAdvanced}

Source:
Parameters:
Name Type Description
fieldset JQuery

JQuery selector representing a fieldset

Returns:
Type
ShowAdvanced

(inner) enhanceForm(form) → {ShowAdvanced}

Source:
Parameters:
Name Type Description
form JQuery

JQuery selector representing the form

Returns:
Type
ShowAdvanced

(inner) generateId(node) → {String}

Source:

Generates a uniq id for the dom element it's called on unless the element already has an id. The id is set on the dom node before being returned.

Parameters:
Name Type Description
node JQuery

JQuery selector representing a single DOM Node.

Returns:
Type
String

(inner) init(formid) → {ShowAdvanced}

Source:

Initialise this module.

Parameters:
Name Type Description
formid String
Returns:
Type
ShowAdvanced

(inner) switchState(e) → {Boolean}

Source:
Parameters:
Name Type Description
e Event

Event that triggered this action.

Returns:
Type
Boolean