mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-02 08:59:45 +00:00
(js) Update jQuery (1.12.4) and jQuery-UI (1.11.4)
This fixes the issue of attaching a file to a draft by drag'n'drop.
This commit is contained in:
Vendored
-2283
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+8
-3
@@ -18,7 +18,7 @@
|
||||
// Register as an anonymous AMD module:
|
||||
define([
|
||||
'jquery',
|
||||
'jquery.ui.widget'
|
||||
'jquery-ui/widget'
|
||||
], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// Node/CommonJS:
|
||||
@@ -1080,6 +1080,8 @@
|
||||
_handleFileTreeEntry: function (entry, path) {
|
||||
var that = this,
|
||||
dfd = $.Deferred(),
|
||||
entries = [],
|
||||
dirReader,
|
||||
errorHandler = function (e) {
|
||||
if (e && !e.entry) {
|
||||
e.entry = entry;
|
||||
@@ -1107,8 +1109,7 @@
|
||||
readEntries();
|
||||
}
|
||||
}, errorHandler);
|
||||
},
|
||||
dirReader, entries = [];
|
||||
};
|
||||
path = path || '';
|
||||
if (entry.isFile) {
|
||||
if (entry._file) {
|
||||
@@ -1311,6 +1312,10 @@
|
||||
this._off(this.options.fileInput, 'change');
|
||||
},
|
||||
|
||||
_destroy: function () {
|
||||
this._destroyEventHandlers();
|
||||
},
|
||||
|
||||
_setOption: function (key, value) {
|
||||
var reinit = $.inArray(key, this._specialOptions) !== -1;
|
||||
if (reinit) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* jQuery Iframe Transport Plugin 1.8.2
|
||||
* jQuery Iframe Transport Plugin
|
||||
* https://github.com/blueimp/jQuery-File-Upload
|
||||
*
|
||||
* Copyright 2011, Sebastian Tschan
|
||||
@@ -9,13 +9,16 @@
|
||||
* http://www.opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
/* global define, window, document */
|
||||
/* global define, require, window, document */
|
||||
|
||||
(function (factory) {
|
||||
;(function (factory) {
|
||||
'use strict';
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// Register as an anonymous AMD module:
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// Node/CommonJS:
|
||||
factory(require('jquery'));
|
||||
} else {
|
||||
// Browser globals:
|
||||
factory(window.jQuery);
|
||||
|
||||
Vendored
-4
File diff suppressed because one or more lines are too long
Vendored
+5
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user