diff options
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'); |