Prechádzať zdrojové kódy

Merge pull request #32 from dfisch/master

Added checks for file api support
Kartik Visweswaran 10 rokov pred
rodič
commit
22004e7d17
2 zmenil súbory, kde vykonal 9 pridanie a 1 odobranie
  1. 9 1
      js/fileinput.js
  2. 0 0
      js/fileinput.min.js

+ 9 - 1
js/fileinput.js

@@ -675,6 +675,10 @@
     }
 
     $.fn.fileinput = function (options) {
+        if (!hasFileAPISupport()) {
+          return;
+        }
+        
         return this.each(function () {
             var $this = $(this), data = $this.data('fileinput')
             if (!data) {
@@ -688,6 +692,10 @@
 
     //FileInput plugin definition
     $.fn.fileinput = function (option) {
+        if (!hasFileAPISupport()) {
+          return;
+        }
+        
         var args = Array.apply(null, arguments);
         args.shift();
         return this.each(function () {
@@ -771,4 +779,4 @@
         }
     });
 
-})(window.jQuery);
+})(window.jQuery);

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
js/fileinput.min.js


Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov