|
@@ -1,5 +1,5 @@
|
|
|
/*!
|
|
|
- * bootstrap-fileinput v4.3.2
|
|
|
+ * bootstrap-fileinput v4.3.3
|
|
|
* http://plugins.krajee.com/file-input
|
|
|
*
|
|
|
* Author: Kartik Visweswaran
|
|
@@ -10,6 +10,7 @@
|
|
|
*/
|
|
|
(function (factory) {
|
|
|
"use strict";
|
|
|
+ //noinspection JSUnresolvedVariable
|
|
|
if (typeof define === 'function' && define.amd) { // jshint ignore:line
|
|
|
// AMD. Register as an anonymous module.
|
|
|
define(['jquery'], factory); // jshint ignore:line
|
|
@@ -29,7 +30,7 @@
|
|
|
$.fn.fileinputLocales = {};
|
|
|
$.fn.fileinputThemes = {};
|
|
|
|
|
|
- var NAMESPACE, MODAL_ID, STYLE_SETTING, OBJECT_PARAMS, DEFAULT_PREVIEW, objUrl, compare, isIE, isEdge, handler,
|
|
|
+ var NAMESPACE, MODAL_ID, STYLE_SETTING, OBJECT_PARAMS, DEFAULT_PREVIEW, objUrl, compare, isIE, handler,
|
|
|
previewCache, getNum, hasFileAPISupport, hasDragDropSupport, hasFileUploadSupport, addCss, tMain1, tMain2,
|
|
|
tPreview, tFileIcon, tClose, tCaption, tBtnDefault, tBtnLink, tBtnBrowse, tModalMain, tModal, tProgress, tSize,
|
|
|
tFooter, tActions, tActionDelete, tActionUpload, tActionZoom, tActionDrag, tTagBef, tTagBef1, tTagBef2, tTagAft,
|
|
@@ -70,9 +71,6 @@
|
|
|
div.parentNode.removeChild(div);
|
|
|
return status;
|
|
|
};
|
|
|
- isEdge = function () {
|
|
|
- return new RegExp('Edge\/[0-9]+', 'i').test(navigator.userAgent);
|
|
|
- };
|
|
|
handler = function ($el, event, callback, skipNS) {
|
|
|
var ev = skipNS ? event : event.split(' ').join(NAMESPACE + ' ') + NAMESPACE;
|
|
|
$el.off(ev).on(ev, callback);
|
|
@@ -284,8 +282,7 @@
|
|
|
/** @namespace div.draggable */
|
|
|
/** @namespace div.ondragstart */
|
|
|
/** @namespace div.ondrop */
|
|
|
- return !isIE(9) && !isEdge() && // Fix for MS Edge drag & drop support bug
|
|
|
- (div.draggable !== undefined || (div.ondragstart !== undefined && div.ondrop !== undefined));
|
|
|
+ return !isIE(9) && (div.draggable !== undefined || (div.ondragstart !== undefined && div.ondrop !== undefined));
|
|
|
};
|
|
|
hasFileUploadSupport = function () {
|
|
|
return hasFileAPISupport() && window.FormData;
|
|
@@ -2640,7 +2637,7 @@
|
|
|
'0') + '</div>';
|
|
|
},
|
|
|
_renderFileFooter: function (caption, size, width, isError) {
|
|
|
- var self = this, config = self.fileActionSettings, footer, rem = config.showRemove, drg = config.showDrag,
|
|
|
+ var self = this, config = self.fileActionSettings, rem = config.showRemove, drg = config.showDrag,
|
|
|
upl = config.showUpload, zoom = config.showZoom, out, template = self._getLayoutTemplate('footer'),
|
|
|
indicator = isError ? config.indicatorError : config.indicatorNew,
|
|
|
title = isError ? config.indicatorErrorTitle : config.indicatorNewTitle;
|