Просмотр исходного кода

Updates to css for drop zone without drag and drop

Kartik Visweswaran 9 лет назад
Родитель
Сommit
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


Некоторые файлы не были показаны из-за большого количества измененных файлов