Permalink
Browse files

1) Rename "Cancel All" -> "Cancel uploads" to clarify what we're

   talking about and follow our capitalization standards.
2) Grey out the Done button when uploads are in progress.
Fixes ticket #1302.
  • Loading branch information...
1 parent 4c84458 commit 201883101595d5954cf45ffac6e2c376e5ecce35 @bharat bharat committed Aug 29, 2010
@@ -21,12 +21,18 @@
$("#g-upload-cancel-all")
.addClass("ui-state-disabled")
.attr("disabled", "disabled");
+ $("#g-upload-done")
+ .removeClass("ui-state-disabled")
+ .attr("disabled", null);
return true;
},
onClearQueue: function(event) {
$("#g-upload-cancel-all")
.addClass("ui-state-disabled")
.attr("disabled", "disabled");
+ $("#g-upload-done")
+ .removeClass("ui-state-disabled")
+ .attr("disabled", null);
return true;
},
onComplete: function(event, queueID, fileObj, response, data) {
@@ -71,6 +77,9 @@
$("#g-upload-cancel-all")
.removeClass("ui-state-disabled")
.attr("disabled", null);
+ $("#g-upload-done")
+ .addClass("ui-state-disabled")
+ .attr("disabled", "disabled");
}
return true;
}
@@ -4,5 +4,5 @@
<?= t("Done") ?>
</button>
<button id="g-upload-cancel-all" class="ui-state-default ui-corner-all ui-state-disabled" onclick="$('#g-uploadify').uploadifyClearQueue();return false;" disabled="disabled">
- <?= t("Cancel All") ?>
+ <?= t("Cancel uploads") ?>
</button>

0 comments on commit 2018831

Please sign in to comment.