small fix for uploader
This commit is contained in:
parent
606db80718
commit
4e48166bc6
|
@ -72,11 +72,10 @@
|
|||
autoUpload : false,
|
||||
url : "/admin/hps_learnings/upload_temp_file",
|
||||
maxChunkSize : 8 * 1024 * 1024,
|
||||
acceptFileTypes: /(\.|\/)(zip|ZIP)$/i,
|
||||
acceptFileTypes: /(\.|\/)(zip)$/i,
|
||||
add : function(e, data){
|
||||
uploadBtn.removeClass("hide");
|
||||
notificationArea.removeClass("error").text(data.files[0].name);
|
||||
return false;
|
||||
var uploadData = data;
|
||||
uploadBtn.one("click",function(){
|
||||
$.ajax({
|
||||
|
@ -157,7 +156,7 @@
|
|||
|
||||
$("#presentation-file").on("change",function(){
|
||||
var file = $(this)[0].files[0].name.split(".");
|
||||
if(file[file.length - 1] == "zip" || file[file.length - 1] == "ZIP"){
|
||||
if(file[file.length - 1] == "zip"){
|
||||
return true;
|
||||
}else{
|
||||
uploadBtn.addClass("hide");
|
||||
|
|
Loading…
Reference in New Issue