aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/forms
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/tidypics/forms')
-rw-r--r--views/default/tidypics/forms/ajax_upload.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/views/default/tidypics/forms/ajax_upload.php b/views/default/tidypics/forms/ajax_upload.php
index 87a6ad0ed..47aa954c7 100644
--- a/views/default/tidypics/forms/ajax_upload.php
+++ b/views/default/tidypics/forms/ajax_upload.php
@@ -83,8 +83,6 @@ $("#uploadify").uploadify({
'cancelImg' : '<?php echo $vars['url']; ?>_graphics/icon_customise_remove.gif',
'multi' : true,
'auto' : false,
- 'fileDesc' : '<?php echo elgg_echo('tidypics:uploader:filedesc'); ?>',
- 'fileExt' : '*.jpg;*.jpeg;*.png;*.gif',
'wmode' : 'transparent',
'buttonImg' : " ",
'height' : 20,
@@ -117,8 +115,12 @@ $("#uploadify").uploadify({
}
);
},
- 'onComplete' : function(event, queueID) {
+ 'onComplete' : function(event, queueID, fileObj, response) {
// check for errors here
+ if (response != 'success') {
+ $("#uploadify" + queueID + " .percentage").text(" - " + response);
+ $("#uploadify" + queueID).addClass('uploadifyError');
+ }
$("#uploadify" + queueID + " > .cancel").remove();
return false;
},