- Source:
Methods
(static) ajaxifySaving(options, $submit) → {Drupal.Ajax}
Creates a Drupal.Ajax
instance that is used to save a form.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | Submit options to the form. Properties
|
|||||||||
$submit |
jQuery | The submit element. |
- Source:
Returns:
A Drupal.Ajax
instance.
- Type
- Drupal.Ajax
(static) load(options, callback)
Loads a form, calls a callback to insert.
Leverages Drupal.Ajax
' ability to have scoped (per-instance)
command implementations to be able to call a callback.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | An object with the following keys: Properties
|
||||||||||||
callback |
function | A callback function that will receive the form to be inserted, as well as the ajax object, necessary if the callback wants to perform other Ajax commands. |
- Source:
(static) unajaxifySaving(ajax)
Cleans up the Drupal.Ajax
instance that is used to save the form.
Parameters:
Name | Type | Description |
---|---|---|
ajax |
Drupal.Ajax | A |
- Source: