Browse Source

Upgraded to release v1.7.0

Kartik Visweswaran 11 years ago
parent
commit
5de4da1220
4 changed files with 7 additions and 9 deletions
  1. 3 4
      CHANGE.md
  2. 3 4
      README.md
  3. 1 1
      js/fileinput.js
  4. 0 0
      js/fileinput.min.js

+ 3 - 4
CHANGE.md

@@ -3,10 +3,9 @@ version 1.7.0
 Date: 02-Jul-2014
 
 ### Additions
-1. The plugin now offers an additional `overwriteInitial` option. This is by default set to `false`. When set to `false`, this will always show the 
-  `initialPreview` content at the beginning (when uploading or during clear). If set to `true` any `initialPreview` content set will be overwritten, 
-   when new file is uploaded or when files are cleared. Setting it to `false` will help displaying a saved image or file from database always - 
-   especially when using the `multiple` file upload feature.
+1. The plugin now offers an additional `overwriteInitial` option. This is by default set to `true`. This defaults to `true`, whereby, 
+   any `initialPreview` content set will be overwritten, when new file is uploaded or when files are cleared. Setting it to `false` will 
+   help displaying a saved image or file from database always - useful especially when using the `multiple` file upload feature.
 
 version 1.6.0
 =============

+ 3 - 4
README.md

@@ -194,10 +194,9 @@ _string_ the initial preview caption text to be displayed. If you do not set a v
 files passed in `initialPreview`.
 
 #### overwriteInitial
-_boolean_ whether you wish to overwrite the initial preview content and caption setup. This is by default set to `false`. When set to `false`, this will always show the 
-`initialPreview` content at the beginning (when uploading or during clear). If set to `true` any `initialPreview` content set will be overwritten, 
-when new file is uploaded or when files are cleared. Setting it to `false` will help displaying a saved image or file from database always - 
-especially when using the `multiple` file upload feature.
+_boolean_ whether you wish to overwrite the initial preview content and caption setup. This defaults to `true`, whereby, any `initialPreview` content set 
+will be overwritten, when new file is uploaded or when files are cleared. Setting it to `false` will help displaying a saved image or file from database always - 
+useful especially when using the `multiple` file upload feature.
  
 #### captionTemplate
 _string_ the template used to render the caption. The following template variables will be parsed:

+ 1 - 1
js/fileinput.js

@@ -393,7 +393,7 @@
         initialPreview: '',
         initialCaption: '',
         initialPreviewContent: '',
-        overwriteInitial: false,
+        overwriteInitial: true,
         previewTemplate: PREVIEW_TEMPLATE,
         captionTemplate: CAPTION_TEMPLATE,
         browseLabel: 'Browse …',

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff