Ver código fonte

typo

develop
Robin Thoni 8 anos atrás
pai
commit
939dd24cca

+ 2
- 2
public/app/controllers/upload.controller.js Ver arquivo

@@ -12,13 +12,13 @@ angular.module('app')
12 12
                 reader.onload = (function(file) {
13 13
                     return function(e) {
14 14
                         $scope.$apply(function() {
15
-                            $scope.fileDropped(e.target.result, file);
15
+                            $scope.fileLoaded(e.target.result, file);
16 16
                         });
17 17
                     };
18 18
                 })(f);
19 19
             });
20 20
 
21
-            $scope.fileDropped = function(content, file)
21
+            $scope.fileLoaded = function(content, file)
22 22
             {
23 23
                 $scope.image = {
24 24
                     content: content,

+ 1
- 1
public/app/views/upload.html Ver arquivo

@@ -1,7 +1,7 @@
1 1
 <div layout="column" layout-fill layout-align="top center">
2 2
 
3 3
     <h1>Upload</h1>
4
-    <div image-dropzone="fileDropped(content, file)" class="dropzone">
4
+    <div image-dropzone="fileLoaded(content, file)" class="dropzone">
5 5
         <img ng-show="image != null" ng-src="{{ image.content | toDataUrl }}">
6 6
         <p ng-hide="image != null">
7 7
             Drag a file here or <a href="" ng-click="pickFile()">pick one</a>

Carregando…
Cancelar
Salvar