diff --git a/infoscreen/static/html/generic_image_create.html b/infoscreen/static/html/generic_image_create.html index 6a76c50..f1d1d9d 100644 --- a/infoscreen/static/html/generic_image_create.html +++ b/infoscreen/static/html/generic_image_create.html @@ -1,7 +1,7 @@
- +
diff --git a/infoscreen/static/js/infoadmin_controllers.js b/infoscreen/static/js/infoadmin_controllers.js index 8351541..2fcbf6d 100644 --- a/infoscreen/static/js/infoadmin_controllers.js +++ b/infoscreen/static/js/infoadmin_controllers.js @@ -109,9 +109,10 @@ app.controller('infoadmin_abbitem_create', function($scope, $http,ItemList){ app.controller('infoadmin_image_create', ['$scope', 'Upload', '$timeout',"ItemList", function ($scope, Upload, $timeout,ItemList) { $scope.send = function(file) { + console.log("name: "+$scope.imagename); file.upload = Upload.upload({ url: '/infoscreen/create_image', - data: {name: $scope.name, image: file}, + data: {name: $scope.imagename, image: file}, }).then(function (response) { $timeout(function () { file.result = response.data;