core_form/showadvanced

Description:
  • A class to help show and hide advanced form content.

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

A class to help show and hide advanced form content.

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}

Description:
  • 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.

Source:
Parameters:
Name Type Description
node JQuery

JQuery selector representing a single DOM Node.

Returns:
Type
String

(inner) init(formid) → {ShowAdvanced}

Description:
  • Initialise this module.

Source:
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