Skip to content

Commit

Permalink
Hide file size on file field (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlpp committed Oct 7, 2015
1 parent 4430dd7 commit a48eb9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions resources/assets/js/sharp.upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@

if(params.populatedFile) {
dropzone.emit("addedfile", params.populatedFile);
if(!params.populatedFile.size) {
$(this).find(".dz-size").addClass("hidden");
}
if(params.thumb) {
dropzone.emit("thumbnail", params.populatedFile, params.thumb);
}
Expand Down
3 changes: 3 additions & 0 deletions resources/assets/sharp.form.js
Original file line number Diff line number Diff line change
Expand Up @@ -29212,6 +29212,9 @@ function escapeFieldId(id) {

if(params.populatedFile) {
dropzone.emit("addedfile", params.populatedFile);
if(!params.populatedFile.size) {
$(this).find(".dz-size").addClass("hidden");
}
if(params.thumb) {
dropzone.emit("thumbnail", params.populatedFile, params.thumb);
}
Expand Down
Loading

0 comments on commit a48eb9a

Please sign in to comment.