From b94cc3e056ae2270317652a004b568fdbeb42761 Mon Sep 17 00:00:00 2001 From: okalintu Date: Tue, 4 Oct 2016 14:34:46 +0300 Subject: [PATCH] fixed bug in infoscreen imageupload --- infoscreen/static/html/generic_image_create.html | 2 +- infoscreen/static/js/infoadmin_controllers.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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;