aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-10-30 15:17:53 +0000
committerCash Costello <cash.costello@gmail.com>2010-10-30 15:17:53 +0000
commit4f57a2a6e8c9f1130b4772125aa6d434e6c2a5c3 (patch)
tree7f5fa916b90bf137fc066c169573aa6bd2dc265a /views/default/tidypics
parentd4394d9645b379c1d57c096ee4136fbae4904b1d (diff)
downloadelgg-4f57a2a6e8c9f1130b4772125aa6d434e6c2a5c3.tar.gz
elgg-4f57a2a6e8c9f1130b4772125aa6d434e6c2a5c3.tar.bz2
turning off choose and upload after the images are uploaded
Diffstat (limited to 'views/default/tidypics')
-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');