/[drupal]/contributions/modules/nodeorder/nodeorder.js
ViewVC logotype

Contents of /contributions/modules/nodeorder/nodeorder.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Wed Apr 22 18:45:19 2009 UTC (7 months ago) by pvanderspek
Branch: MAIN
Changes since 1.2: +16 -38 lines
File MIME type: text/javascript
merged changes from 6.x branch into HEAD
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 }

  ViewVC Help
Powered by ViewVC 1.1.2