From ce5c292f8cd4f31ceee8012055c6f6c0ac957d4b Mon Sep 17 00:00:00 2001 From: Fabio Varesano Date: Sun, 14 Jan 2007 16:35:44 +0000 Subject: Added support for busy indicator on video uploads. --- plugins/video_upload/video_upload.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'plugins/video_upload/video_upload.js') diff --git a/plugins/video_upload/video_upload.js b/plugins/video_upload/video_upload.js index 0fd80c1..bed69a0 100644 --- a/plugins/video_upload/video_upload.js +++ b/plugins/video_upload/video_upload.js @@ -8,5 +8,22 @@ * @author Fabio Varesano */ +/** + * 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); +} -- cgit v1.2.3