aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/tidypics/css.php2
-rw-r--r--views/default/tidypics/forms/ajax_upload.php10
2 files changed, 11 insertions, 1 deletions
diff --git a/views/default/tidypics/css.php b/views/default/tidypics/css.php
index 6932b8a75..f7dd256a1 100644
--- a/views/default/tidypics/css.php
+++ b/views/default/tidypics/css.php
@@ -352,7 +352,7 @@ width:100%;
}
.uploadifyProgressBar {
-background-color: #0099FF;
+background-color: #0054a7;
width: 1px;
height: 3px;
}
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');