Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
fixed uploaded bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bupy7 committed May 22, 2017
1 parent 5c293f9 commit d17b7db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
yii2-widget-cropbox
===================

v5.1.1 [2017-05-22]
-------------------

- Fixed uploaded bug.

v5.1.0 [2017-05-20]
-------------------

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "This is widget wrapper of https://github.com/bupy7/js-cropbox. This widget allows crop image before to upload to server and send informations about crop as JSON string.",
"keywords": ["yii2", "extension", "widget", "crop", "image"],
"homepage": "https://github.com/bupy7/yii2-widget-cropbox",
"version": "5.1.0",
"version": "5.1.1",
"type": "yii2-extension",
"license": "BSD-3-Clause",
"authors": [
Expand Down
1 change: 0 additions & 1 deletion src/resources/cropbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
fileReader.readAsDataURL(this.files[0]);
fileReader.onload = function(event) {
$th.cropbox('load', event.target.result);
$(s.fileInput).val(null);
};
});
// reset
Expand Down
4 changes: 2 additions & 2 deletions src/resources/cropbox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d17b7db

Please sign in to comment.