Log of /contributions/modules/activeselect/API.txt
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.4 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Sun Apr 9 05:11:52 2006 UTC
(3 years, 7 months ago)
by
jaza
Branch:
MAIN
CVS Tags:
DRUPAL-4-7--1-0,
DRUPAL-5--1-0,
HEAD
Branch point for:
DRUPAL-4-7,
DRUPAL-5
Changes since
1.3: +37 -19 lines
Diff to
previous 1.3
- Changed theme_activeselect() to use _form_set_class() instead of _form_get_class() (the latter function has been removed from Drupal core).
- #57929: use JSON instead of pipe delimiters for AJAX response text. Activeselect now uses drupal_to_js() (on the PHP end) and parseJson() (on the JS end) for response text, and this has allowed a large amount of pipe-parsing code to be removed from the Activeselect JS library. API.txt has been updated to reflect this, and category_activeselect() has been updated to use the new API.
- New activeselect_explode_values() function, which does the work of turning the request string into a PHP array. API.txt and category_activeselect() have been updated with this function.
Revision
1.3 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Mar 29 12:51:48 2006 UTC
(3 years, 8 months ago)
by
jaza
Branch:
MAIN
Changes since
1.2: +6 -6 lines
Diff to
previous 1.2
- #55129: categories with multiple distant parents get duplicated in admin listings.
- #56026: multiple parents not saved when using activeselect. Turned out that this problem could be solved entirely by patching activeselect, rather than by patching category (the Form API processes select data as an array if the name of the element has '[]' brackets on the end - so activeselect now appends and removes '[]' characters from a target element's name dynamically).
- Changed the activeselect API to use '|selected' notation, instead of the '#' notation, to indicate selected elements.
Revision
1.2 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Tue Mar 28 13:23:35 2006 UTC
(3 years, 8 months ago)
by
jaza
Branch:
MAIN
Changes since
1.1: +6 -5 lines
Diff to
previous 1.1
Changed the activeselect API, so that the 'multiple' attribute is defined more cleanly, at the end of the target name, rather than as a 'fake option element'.
Note: I experimented with various ways to solve #56026 purely by changing the JS, but was unsuccessful. It seems that a multi-select element with 'multiple="multiple"' defined, absolutely cannot be turned into a single-select, using JS (even removing it with removeAttribute() and removeAttributeNode() had no effect).
Revision
1.1 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Mar 16 12:06:22 2006 UTC
(3 years, 8 months ago)
by
jaza
Branch:
MAIN
Wrote API.txt file containing developer instructions for how to use activeselect in other modules.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.