diff options
author | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2007-01-14 17:30:40 +0000 |
---|---|---|
committer | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2007-01-14 17:30:40 +0000 |
commit | 3589ea14165fdf19609720406229ebfab8418e08 (patch) | |
tree | 7e4dc69b093356ad9b70dd5166f3756094b00e4b /plugins/video_upload/video_upload.js | |
parent | 3a610e5651640441e70d1d2739803e1268a06a04 (diff) | |
download | video-3589ea14165fdf19609720406229ebfab8418e08.tar.gz video-3589ea14165fdf19609720406229ebfab8418e08.tar.bz2 |
it's possible to abort upload.
Diffstat (limited to 'plugins/video_upload/video_upload.js')
-rw-r--r-- | plugins/video_upload/video_upload.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/video_upload/video_upload.js b/plugins/video_upload/video_upload.js index bed69a0..d5726c0 100644 --- a/plugins/video_upload/video_upload.js +++ b/plugins/video_upload/video_upload.js @@ -14,13 +14,22 @@ Drupal.video_upload_hide = function () { $('#node-form').hide(); $("#sending").show(); + $("#video_upload_cancel_link").click(Drupal.video_upload_show); +} + +Drupal.video_upload_show = function() { + $('#node-form').show(); + $("#sending").hide(); + + //$("form").bind("submit", function() { return false; }) + window.location = window.location; } /** * Attaches the upload behaviour to the video upload form. */ Drupal.video_upload = function() { - $('#node-form').submit(video_upload_hide); + $('#node-form').submit(Drupal.video_upload_hide); } // Global killswitch |