projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f32461d
)
Roo/bootstrap/UploadCropbox.js
author
edward
<edward@roojs.com>
Thu, 21 Jan 2016 05:15:03 +0000
(13:15 +0800)
committer
edward
<edward@roojs.com>
Thu, 21 Jan 2016 05:15:03 +0000
(13:15 +0800)
Roo/bootstrap/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/UploadCropbox.js
b/Roo/bootstrap/UploadCropbox.js
index
ca99ce2
..
fdd022e
100644
(file)
--- a/
Roo/bootstrap/UploadCropbox.js
+++ b/
Roo/bootstrap/UploadCropbox.js
@@
-401,7
+401,7
@@
Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component, {
context.drawImage(this.image.dom, x, y, cropWidth, cropHeight, centerX * -1, centerY * -1, thumbWidth, thumbHeight);
- this.cropImageData = canvas.toDataURL(
'image/png'
);
+ this.cropImageData = canvas.toDataURL(
this.cropType
);
this.fireEvent('crop', this, this.cropImageData);
}