]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
turning off choose and upload after the images are uploaded
authorCash Costello <cash.costello@gmail.com>
Sat, 30 Oct 2010 15:17:53 +0000 (15:17 +0000)
committerCash Costello <cash.costello@gmail.com>
Sat, 30 Oct 2010 15:17:53 +0000 (15:17 +0000)
views/default/tidypics/css.php
views/default/tidypics/forms/ajax_upload.php

index 6932b8a756ab7086dd42653423f424a84ef72742..f7dd256a1678a8464e27a64c13093dc0c65edcc5 100644 (file)
@@ -352,7 +352,7 @@ width:100%;
 }
 
 .uploadifyProgressBar {
-background-color: #0099FF;
+background-color: #0054a7;
 width: 1px;
 height: 3px;
 }
index 912d1c03e6554b1a60077875e6579f0bdf9cb60c..1d2a240ad58fd7a73553cb2be8ca998b8e0a1e3c 100644 (file)
@@ -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');