Skip to content

Commit

Permalink
File Without submit is now allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisaha committed Sep 16, 2013
1 parent 849ab3a commit 17d3b17
Show file tree
Hide file tree
Showing 2 changed files with 373 additions and 333 deletions.
17 changes: 16 additions & 1 deletion demo/demo.htm
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,27 @@
{
// responseType:'json',
//data:
finputs:{
profile_pic:{
button:'image_upload2',
allowedType:'image',
selectedFileLabel:'selected_img_file2'
},
doc_attachment:{
button:'doc_upload2',
allowedType:'document',
selectedFileLabel:'selected_doc_file2',
multipleFile:true,
selectedFileClass:'selectedFileClass'
}
},
action:'post.php',
onBeforeSubmit:function(ref){
ref.setData({'username':'roni','password':'123456'});
return true;
},
onComplete:function(response){
onComplete:function(response, ref){
ref.clear();
document.getElementById('output').innerHTML=response;
}
});
Expand Down
Loading

0 comments on commit 17d3b17

Please sign in to comment.