aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_upload/video_upload.js
blob: bed69a00695e7f7bea39a2d6e3f3bb9c6a3584f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// $Id$
/**
 * @file
 * Javascript functions for busy status on video uploads
 * 
 * TODO: Support AJAX Uploads :-)
 *
 * @author Fabio Varesano <fvaresano at yahoo dot it>
*/

/**
 * Hide the node form and show the busy div
*/
Drupal.video_upload_hide = function () {
  $('#node-form').hide();
  $("#sending").show();
}

/**
 * Attaches the upload behaviour to the video upload form.
 */
Drupal.video_upload = function() {
  $('#node-form').submit(video_upload_hide);
}

// Global killswitch
if (Drupal.jsEnabled) {
  $(document).ready(Drupal.video_upload);
}