jquery.fileupload-rails 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/Readme.md +2 -0
- data/jquery.fileupload-rails.gemspec +1 -1
- data/vendor/assets/javascripts/jquery.fileupload.js +13 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjgzMTExMGIwZTc2Y2U2Y2MzN2YwNzkxOThkYzEzMjg1NDI3YjRiYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzZlOWYyY2YzZWUxYmZhMjllZDI0N2RmNjY4NGNmYjJkY2Q1NmY1Yg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDkzYmRjMDdjZmZiYTE5MGZlMmRlZjQxM2IzNjJlMjQ5ZWIxODMxZmYxNjEy
|
10
|
+
N2IyNzNiMzFmMGUyMWIwNGNmNzdmMmYyMDY0YTgzYTkzYWJkMzRmMjQ5NjVj
|
11
|
+
MjE3MjM5MjI1YWM4ZDFlY2RiMmQ4MjZhYzBkMzMxZjJkNjVkY2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmI0YmY1ZGQ4MGYxMzEyNWJjMmZkZjNiZTNlOTRjMGRiYjQ0YTEyYjYyNTJk
|
14
|
+
Njc1MTgyNmEzN2M2YWM1MmE5OGZjZDhlODEyNTVmNTJmYzA5MmU1YjczMDQ0
|
15
|
+
MTQ3YjZlNWEyYTQxMGZkMWZiMjlhZDNkZGU5MWRiZWY0YmIzZDA=
|
data/Readme.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery.iframe-transport
|
3
3
|
|
4
4
|
/*
|
5
|
-
* jQuery File Upload Plugin 5.
|
5
|
+
* jQuery File Upload Plugin 5.31
|
6
6
|
* https://github.com/blueimp/jQuery-File-Upload
|
7
7
|
*
|
8
8
|
* Copyright 2010, Sebastian Tschan
|
@@ -226,8 +226,9 @@
|
|
226
226
|
cache: false
|
227
227
|
},
|
228
228
|
|
229
|
-
// A list of options that require
|
230
|
-
|
229
|
+
// A list of options that require reinitializing event listeners and/or
|
230
|
+
// special initialization code:
|
231
|
+
_specialOptions: [
|
231
232
|
'fileInput',
|
232
233
|
'dropZone',
|
233
234
|
'pasteZone',
|
@@ -1153,12 +1154,12 @@
|
|
1153
1154
|
},
|
1154
1155
|
|
1155
1156
|
_setOption: function (key, value) {
|
1156
|
-
var
|
1157
|
-
if (
|
1157
|
+
var reinit = $.inArray(key, this._specialOptions) !== -1;
|
1158
|
+
if (reinit) {
|
1158
1159
|
this._destroyEventHandlers();
|
1159
1160
|
}
|
1160
1161
|
this._super(key, value);
|
1161
|
-
if (
|
1162
|
+
if (reinit) {
|
1162
1163
|
this._initSpecialOptions();
|
1163
1164
|
this._initEventHandlers();
|
1164
1165
|
}
|
@@ -1187,6 +1188,11 @@
|
|
1187
1188
|
return new RegExp(parts.join('/'), modifiers);
|
1188
1189
|
},
|
1189
1190
|
|
1191
|
+
_isRegExpOption: function (key, value) {
|
1192
|
+
return key !== 'url' && $.type(value) === 'string' &&
|
1193
|
+
/^\/.*\/[igm]{0,3}$/.test(value);
|
1194
|
+
},
|
1195
|
+
|
1190
1196
|
_initDataAttributes: function () {
|
1191
1197
|
var that = this,
|
1192
1198
|
options = this.options;
|
@@ -1194,9 +1200,7 @@
|
|
1194
1200
|
$.each(
|
1195
1201
|
$(this.element[0].cloneNode(false)).data(),
|
1196
1202
|
function (key, value) {
|
1197
|
-
|
1198
|
-
if ($.type(value) === 'string' &&
|
1199
|
-
value.charAt(0) === '/') {
|
1203
|
+
if (that._isRegExpOption(key, value)) {
|
1200
1204
|
value = that._getRegExp(value);
|
1201
1205
|
}
|
1202
1206
|
options[key] = value;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery.fileupload-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Semyon Perepelitsa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
prerelease: false
|