Procedural File: _file_settings.form.php
Source Location: /blogs/inc/files/views/_file_settings.form.php
Functions
JS_showhide_class_on_checkbox [line 56]
void JS_showhide_class_on_checkbox(
string $class, string $checkbox_id
)
|
|
Javascript to init hidden/shown state of something (like a DIV) based on a checkbox
EXPERIMENTAL Will be moved to another file, I'm leaving it here for a short period, in order to provide context
PROBLEM: jQuery is not necessarily loaded at the moment we use this :(
Parameters:
|
string |
$class: |
DOM class |
|
string |
$checkbox_id: |
DOM id |
JS_showhide_class_on_this [line 119]
void JS_showhide_class_on_this(
string $class
)
|
|
Javascript hide/show all DOM elements with a particular class based on current checkbox
EXPERIMENTAL Will be moved to another file, I'm leaving it here for a short period, in order to provide context
Parameters:
|
string |
$class: |
DOM class name |
JS_showhide_ffield_on_checkbox [line 104]
void JS_showhide_ffield_on_checkbox(
string $field_id, string $checkbox_id
)
|
|
Javascript to init hidden/shown state of a fastform field based on a checkbox
EXPERIMENTAL Will be moved to another file, I'm leaving it here for a short period, in order to provide context
Parameters:
|
string |
$field_id: |
form field id as used when creating it with the Form class |
|
string |
$checkbox_id: |
DOM id |
JS_showhide_ffield_on_this [line 161]
void JS_showhide_ffield_on_this(
string $field_id
)
|
|
Javascript hide/show a fastform field based on current checkbox
EXPERIMENTAL Will be moved to another file, I'm leaving it here for a short period, in order to provide context
Parameters:
JS_showhide_ids_on_checkbox [line 79]
void JS_showhide_ids_on_checkbox(
array|string $div_ids, string $checkbox_id
)
|
|
Javascript to init hidden/shown state of something (like a DIV) based on a checkbox
EXPERIMENTAL Will be moved to another file, I'm leaving it here for a short period, in order to provide context
Parameters:
|
array|string |
$div_ids: |
DOM id |
|
string |
$checkbox_id: |
DOM id |
JS_showhide_ids_on_this [line 139]
void JS_showhide_ids_on_this(
array|string $div_ids
)
|
|
Javascript hide/show something (like a DIV) based on current checkbox
EXPERIMENTAL Will be moved to another file, I'm leaving it here for a short period, in order to provide context
Parameters:
|
array|string |
$div_ids: |
DOM ids |