Commit 26176ffc by doszhang

dos

parent 34e0471f
...@@ -98,7 +98,7 @@ $(document).ready(function () { ...@@ -98,7 +98,7 @@ $(document).ready(function () {
$('input[name=btn-upload]').change(function () { $('input[name=btn-upload]').change(function () {
$('.hide-block').hide(); $('.hide-block').hide();
$('.show-block').show(); $('.show-block').show();
bindUpload(this, uploadCtx, uploadCanvas, 1, function (img) { bindUpload(this, uploadCtx, uploadCanvas, 1, function (img, imgInfo) {
$('.btn-upload-block').css('left', '53px'); $('.btn-upload-block').css('left', '53px');
$('.btn-createposter').show(); $('.btn-createposter').show();
$('.upload-before').show(); $('.upload-before').show();
...@@ -471,7 +471,7 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) { ...@@ -471,7 +471,7 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) {
height = img.width; height = img.width;
} }
drawImage(ctx, myCanvas, img, imgInfo); drawImage(ctx, myCanvas, img, imgInfo);
callback(img); callback(img, imgInfo);
} }
img.src = URL.createObjectURL(imgData); img.src = URL.createObjectURL(imgData);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment