Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ctools
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
ctools
Commits
1b375298
Commit
1b375298
authored
16 years ago
by
Earl Miles
Browse files
Options
Downloads
Patches
Plain Diff
Add a little more documentation to the ajax responder.
parent
9398d6a6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/ajax.inc
+14
-4
14 additions, 4 deletions
includes/ajax.inc
js/ajax-responder.js
+1
-2
1 addition, 2 deletions
js/ajax-responder.js
with
15 additions
and
6 deletions
includes/ajax.inc
+
14
−
4
View file @
1b375298
...
...
@@ -18,7 +18,7 @@
* a function in the Drupal.CTools.AJAX.Command space). The object can
* contain any other data that the command needs to process.
*
* Built in commands:
* Built in commands
include
:
* - replace
* - selector: The CSS selector. This can be any selector jquery uses in $().
* - data: The data to use with the jquery replace() function.
...
...
@@ -27,13 +27,23 @@
* - selector: The CSS selector. This can be any selector jquery uses in $().
* - data: The data to use with the jquery append() function.
*
* -
addClass
* - selector: The CSS selector. This
can be any selector jquery uses in $()
.
* -
da
ta:
The class to add
.
* -
changed
* - selector: The CSS selector. This
selector will have 'changed' added as a clas
.
* -
s
ta
r
:
If set, will add a star to this selector. It must be within the 'selector' above
.
*
* - alert
* - title: The title of the alert.
* - data: The data in the alert.
*
* Commands are usually created with a couple of helper functions, so they
* look like this:
*
* @code{
* $commands = array();
* $commands[] = ctools_ajax_command_replace('#ctools-object-1', 'some html here');
* $commands[] = ctools_ajax_command_add
* ctools_ajax_render($commands); // this function exits.
* }
*/
/**
...
...
This diff is collapsed.
Click to expand it.
js/ajax-responder.js
+
1
−
2
View file @
1b375298
// $Id $
// $Id$
/**
* @file
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment