Browse Source

Comment out console logs.

pull/96/head
Evan Theurer 11 years ago
parent
commit
a3b8f251af
  1. 10
      static/js/directives/buddypictureupload.js

10
static/js/directives/buddypictureupload.js

@ -78,15 +78,15 @@ define(['jquery', 'underscore', 'text!partials/buddypictureupload.html'], functi
if (!file) { if (!file) {
return; return;
} }
console.log('file', file); //console.log('file', file);
var progress = function(event) { var progress = function(event) {
console.log('file progress', event); //console.log('file progress', event);
$scope.$apply(function(scope) { $scope.$apply(function(scope) {
$scope.upload.status = event.loaded/event.total * 100; $scope.upload.status = event.loaded/event.total * 100;
}); });
}; };
var load = function(event) { var load = function(event) {
console.log('file load', event); //console.log('file load', event);
$scope.$apply(function(scope) { $scope.$apply(function(scope) {
scope.imgData = event.target.result; scope.imgData = event.target.result;
setUploadImageDimension(scope.imgData); setUploadImageDimension(scope.imgData);
@ -94,7 +94,7 @@ define(['jquery', 'underscore', 'text!partials/buddypictureupload.html'], functi
}); });
}; };
var error = function(event) { var error = function(event) {
console.log('file error', event); //console.log('file error', event);
if (event.target.error.name == 'NotReadableError') { if (event.target.error.name == 'NotReadableError') {
$scope.$apply(function(scope) { $scope.$apply(function(scope) {
scope.error.current = scope.error.read; scope.error.current = scope.error.read;
@ -184,7 +184,7 @@ define(['jquery', 'underscore', 'text!partials/buddypictureupload.html'], functi
var context = canvas.getContext("2d"); var context = canvas.getContext("2d");
context.clearRect(0, 0, canvas.width, canvas.height); context.clearRect(0, 0, canvas.width, canvas.height);
context.drawImage(img, dim.x, dim.y, dim.width, dim.height); context.drawImage(img, dim.x, dim.y, dim.width, dim.height);
console.log('writeUploadToCanvas', dim); //console.log('writeUploadToCanvas', dim);
}; };
$scope.usePicture = function() { $scope.usePicture = function() {

Loading…
Cancel
Save