Skip to content

Commit

Permalink
Updates to css for drop zone without drag and drop
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Sep 12, 2015
1 parent da3575c commit fe8059f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ _boolean_ whether to display the file upload button. Defaults to `true`. This wi
### showCancel
_boolean_ whether to display the file upload cancel button. Defaults to `true`. This will be only enabled and displayed when an AJAX upload is in process.

### showClose
_boolean_ whether to display the close icon in the preview. Defaults to `true`. This will be only parsed when `showPreview` is true or when you are using the `{close}` tag in your preview templates.

### showUploadedThumbs
_boolean_ whether to persist display of the uploaded file thumbnails in the preview window (for ajax uploads) until the remove/clear button is pressed. Defaults to `true`. When set to `false`, a next batch of files selected for upload will clear these thumbnails from preview.

Expand Down
2 changes: 1 addition & 1 deletion js/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -2425,7 +2425,7 @@
self.initBrowse($container);
},
renderMain: function () {
var self = this, dropCss = (self.isUploadable && self.dropZoneEnabled) ? ' file-drop-zone' : '',
var self = this, dropCss = (self.isUploadable && self.dropZoneEnabled) ? ' file-drop-zone' : 'file-drop-disabled',
close = !self.showClose ? '' : self.getLayoutTemplate('close'),
preview = !self.showPreview ? '' : self.getLayoutTemplate('preview')
.replace(/\{class}/g, self.previewClass)
Expand Down
Loading

0 comments on commit fe8059f

Please sign in to comment.