Changeset 8395
- Timestamp:
- 04/10/08 18:00:00 (4 months ago)
- Files:
-
- branches/1.1/lib/helper/JavascriptHelper.php (modified) (2 diffs)
- doc/branches/1.1/book/11-Ajax-Integration.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/helper/JavascriptHelper.php
r8298 r8395 587 587 /** 588 588 * Makes the elements with the DOM ID specified by '$element_id' sortable 589 * by drag-and-drop and make an AJAX call whenever the sort order has590 * changed. By default, the action called gets the serialized sortable591 * element as parameters.589 * by drag-and-drop and if an 'url' is specified make an AJAX call whenever 590 * the sort order has changed. By default, the action called gets the 591 * serialized sortable element as parameters. 592 592 * 593 593 * Example: … … 616 616 } 617 617 618 if (!isset($options['onUpdate']) )618 if (!isset($options['onUpdate']) && isset($options['url'])) 619 619 { 620 620 $options['onUpdate'] = "function(){".remote_function($options)."}"; doc/branches/1.1/book/11-Ajax-Integration.txt
r7987 r8395 775 775 * `tag`: If the list to order is not a set of `<li>` elements, you must define which child elements of the sortable element are to be made draggable (for instance, `div` or `dl`). 776 776 777 >**TIP** 778 >Since symfony 1.1 you can also use `sortable_element()` helper without the `url` option. Then no AJAX request will be made on sorting. Useful if you want to defer the AJAX call to a `save` button or similar. 779 777 780 ### Edit in Place 778 781