Fix et2_file upload

This commit is contained in:
Hadi Nategh
2016-04-08 13:47:05 +00:00
parent 8325963b06
commit 27b9ea6640
3 changed files with 22 additions and 22 deletions

View File

@ -180,7 +180,9 @@ var et2_file = (function(){ "use strict"; return et2_inputWidget.extend(
$j(span).removeClass('et2_file_spanActive');
}
});
var self = this;
// trigger native input upload file
this.span.click(function(){self.input.click()});
// Check for File interface, should fall back to normal form submit if missing
if(typeof File != "undefined" && typeof (new XMLHttpRequest()).upload != "undefined")
{