Browse Source

typo

develop
Robin Thoni 8 years ago
parent
commit
939dd24cca
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      public/app/controllers/upload.controller.js
  2. 1
    1
      public/app/views/upload.html

+ 2
- 2
public/app/controllers/upload.controller.js View File

@@ -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 View File

@@ -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>

Loading…
Cancel
Save