ezdz-rails 0.4.2 → 0.4.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36cbea46c28756e98ccca2362918fb0658675dbb
|
4
|
+
data.tar.gz: e7fad9012f943c7dab18e93d0791777dca569486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a492f16edd4e0a9bea624e87fa72534a79f9e130779477c0aedd150430e8777e3e48cb3c3e11b2519548f1f571210214adc31a8c0c0dcdebbf8faf8e1c07a75
|
7
|
+
data.tar.gz: 1e0862915c6f5c326a7a44fb4b5e057c86efc1cc7243138f869b80130dc37e8f2a075a30e8a3e1fe5e22c4231ac8555fd1fd10a89c2a99e3732f4bb23ccb6d8e
|
data/lib/ezdz-rails/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
// Ezdz [izy-dizy]
|
3
|
-
// v0.4.
|
3
|
+
// v0.4.3 - released 2014-12-16 11:29
|
4
4
|
// Licensed under the MIT license.
|
5
5
|
// https://github.com/jaysalvat/ezdz
|
6
6
|
// ----------------------------------------------------------------------------
|
@@ -59,7 +59,6 @@
|
|
59
59
|
$.ezdz = function(element, options) {
|
60
60
|
this.settings = $.extend(true, {}, defaults, $.ezdz.defaults, options);
|
61
61
|
this.$input = $(element);
|
62
|
-
|
63
62
|
var self = this,
|
64
63
|
settings = self.settings,
|
65
64
|
$input = self.$input;
|
@@ -165,6 +164,11 @@
|
|
165
164
|
$.each(types, function(i, type) {
|
166
165
|
type = $.trim(type);
|
167
166
|
|
167
|
+
if ('.' + extension === type) {
|
168
|
+
accepted = true;
|
169
|
+
return false;
|
170
|
+
}
|
171
|
+
|
168
172
|
if (file.type === type) {
|
169
173
|
accepted = true;
|
170
174
|
return false;
|
@@ -368,14 +372,18 @@
|
|
368
372
|
// jQuery plugin
|
369
373
|
$.fn.ezdz = function(options) {
|
370
374
|
var args = arguments,
|
375
|
+
plugin;
|
376
|
+
|
377
|
+
return this.each(function () {
|
371
378
|
plugin = $(this).data('ezdz');
|
372
379
|
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
+
if (!plugin) {
|
381
|
+
return $(this).data('ezdz', new $.ezdz(this, options));
|
382
|
+
} if (plugin[options]) {
|
383
|
+
return plugin[options].apply(plugin, Array.prototype.slice.call(args, 1));
|
384
|
+
} else {
|
385
|
+
$.error('Ezdz error - Method ' + options + ' does not exist.');
|
386
|
+
}
|
387
|
+
});
|
380
388
|
};
|
381
389
|
}));
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
// Ezdz [izy-dizy]
|
3
|
-
// v0.4.
|
3
|
+
// v0.4.3 - released 2014-12-16 11:29
|
4
4
|
// Licensed under the MIT license.
|
5
5
|
// https://github.com/jaysalvat/ezdz
|
6
6
|
// ----------------------------------------------------------------------------
|