Skip to content

Commit

Permalink
Fixed submitting form with ignoring upload errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CTOlet committed Jun 19, 2015
1 parent 44f71b5 commit f45842c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Usage
Change log
----------

- **June 19, 2015** - Fixed uploading only files without submitting whole form
- **June 19, 2015** - Fixed uploading only files without submitting whole form and submitting form with ignoring upload errors
- **May 1, 2015** - Fixed uploading when connection is slow or uploading time is long. Now ```onclick``` event on submit button is deprecated
- **Apr 16, 2015** - Allow users to have a custom behavior class inheriting from FileBehavior.
- **Apr 4, 2015** - Now all temp uploaded files will be deleted on every new form opened.
Expand Down
8 changes: 2 additions & 6 deletions components/AttachmentsInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,11 @@ public function init()
});
fileInput.on('filebatchpreupload', function(event, data, previewId, index) {
var form = data.form, files = data.files, extra = data.extra,
response = data.response, reader = data.reader;
uploadButtonClicked = true;
});
fileInput.on('filebatchuploadcomplete', function(event, files, extra) { // all files successfully uploaded
//var form = data.form;
//console.log(form);
//console.log('uploaded');
//fileInput.on('filebatchuploadcomplete', function(event, files, extra) { // all files successfully uploaded
fileInput.on('filebatchuploadsuccess', function(event, data, previewId, index) {
filesUploaded = true;
$('#file-input').fileinput('unlock');
if (!uploadButtonClicked) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"authors": [
{
"name": "Alimzhan Abuov aka Nemmo",
"email": "alimzhan.abu@gmail.com"
"email": "alimzhan.abu@yandex.kz"
}
],
"minimum-stability": "dev",
Expand Down

0 comments on commit f45842c

Please sign in to comment.