diff options
author | Cash Costello <cash.costello@gmail.com> | 2010-10-30 15:17:53 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2010-10-30 15:17:53 +0000 |
commit | 4f57a2a6e8c9f1130b4772125aa6d434e6c2a5c3 (patch) | |
tree | 7f5fa916b90bf137fc066c169573aa6bd2dc265a /views/default/tidypics/forms | |
parent | d4394d9645b379c1d57c096ee4136fbae4904b1d (diff) | |
download | elgg-4f57a2a6e8c9f1130b4772125aa6d434e6c2a5c3.tar.gz elgg-4f57a2a6e8c9f1130b4772125aa6d434e6c2a5c3.tar.bz2 |
turning off choose and upload after the images are uploaded
Diffstat (limited to 'views/default/tidypics/forms')
-rw-r--r-- | views/default/tidypics/forms/ajax_upload.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/views/default/tidypics/forms/ajax_upload.php b/views/default/tidypics/forms/ajax_upload.php index 912d1c03e..1d2a240ad 100644 --- a/views/default/tidypics/forms/ajax_upload.php +++ b/views/default/tidypics/forms/ajax_upload.php @@ -102,6 +102,11 @@ $("#uploadify").uploadify({ $("#tidypics_upload_button").removeClass('tidypics_disable'); }, 'onAllComplete' : function() { + $("#tidypics_choose_button").addClass('tidypics_disable'); + $("#tidypics_upload_button").addClass('tidypics_disable'); + $("#tidypics_choose_button").attr("href", "javascript:void(0)"); + $("#tidypics_upload_button").attr("href", "javascript:void(0)"); + $("#tidypics_describe_button").removeClass('tidypics_disable'); $.post( '<?php echo $upload_complete_url; ?>', @@ -112,6 +117,11 @@ $("#uploadify").uploadify({ } ); }, + 'onComplete' : function(event, queueID) { + // check for errors here + $("#uploadify" + queueID + " > .cancel").remove(); + return false; + }, 'onCancel' : function(event, queueID, fileObj, data) { if (data.fileCount == 0) { $("#tidypics_upload_button").addClass('tidypics_disable'); |