Module: settingsDialogRenderer

(require("settingsDialogRenderer"))() → {function}

Creates a render function that will create the settings dialog and return a set of methods to operate on it

Source:
Returns:

render function

Type
function

Methods

(inner) appendTo(el) → {void}

Append the dialog and overlay to a DOM element

Parameters:
Name Type Description
el HTMLElement
Source:
Returns:
Type
void

(inner) getSelectedSetting($el) → {string}

Get the selected value on the radio button

Parameters:
Name Type Description
$el JQuery.Object

the element to extract the setting from

Source:
Returns:

Which should be (simple|advanced|off)

Type
string

(inner) hide() → {void}

Hide the settings dialog.

Source:
Returns:
Type
void

(inner) isNavPopupsEnabled() → {boolean}

Checks if the NavigationPopups gadget is enabled by looking at the global variables

Source:
Returns:

if navpops was found to be enabled

Type
boolean

(inner) setEnabled(enabled) → {void}

Update the form depending on the enabled flag

If false and no navpops, then checks 'off' If true, then checks 'on' If false, and there are navpops, then checks 'advanced'

Parameters:
Name Type Description
enabled boolean

if page previews are enabled

Source:
Returns:
Type
void

(inner) show() → {void}

Show the settings element and position it correctly

Source:
Returns:
Type
void

(inner) toggleHelp($el, visible) → {void}

Toggles the visibility between a form and the help

Parameters:
Name Type Description
$el JQuery.Object

element that contains form and help

visible boolean

if the help should be visible, or the form

Source:
Returns:
Type
void

(inner) toggleHelp(visible) → {void}

Toggle the help dialog on or off

Parameters:
Name Type Description
visible boolean

if you want to show or hide the help dialog

Source:
Returns:
Type
void