| 1 |
// $Id: nodeorder.js,v 1.2.2.2 2009/01/08 19:19:27 pvanderspek Exp $
|
| 2 |
|
| 3 |
/**
|
| 4 |
* Order nodes associated with a term.
|
| 5 |
*
|
| 6 |
* This behavior is dependent on the tableDrag behavior, since it uses the
|
| 7 |
* objects initialized in that behavior to update the row.
|
| 8 |
*/
|
| 9 |
Drupal.behaviors.blockDrag = function(context) {
|
| 10 |
var table = $('table#ordernodes');
|
| 11 |
var tableDrag = Drupal.tableDrag.ordernodes; // Get the blocks tableDrag object.
|
| 12 |
|
| 13 |
// Add a handler for when a row is swapped, enable the submit button.
|
| 14 |
tableDrag.onDrop = function() {
|
| 15 |
var submit = document.getElementById('edit-submit');
|
| 16 |
submit.disabled = false;
|
| 17 |
};
|
| 18 |
}
|