소스 검색

Updates to css for drop zone without drag and drop

Kartik Visweswaran 9 년 전
부모
커밋
fe8059f993
3개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      README.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 3 - 0
README.md

@@ -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.
 

+ 1 - 1
js/fileinput.js

@@ -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)

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
js/fileinput.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.