Migration of /document views

This commit is contained in:
jendib
2014-01-11 16:38:58 +01:00
parent 85aa16afba
commit 6963fd9770
16 changed files with 5559 additions and 172 deletions
@@ -109,13 +109,13 @@ App.controller('DocumentEdit', function($rootScope, $scope, $q, $http, $state, $
var formData = new FormData();
formData.append('id', data.id);
formData.append('file', file);
// Send the file
var promiseFile = $http.put('api/file',
formData, {
headers: { 'Content-Type': false },
transformRequest: function(data) { return data; }
});
headers: { 'Content-Type': undefined },
transformRequest: function(data) { return data; }
});
// TODO Handle progression when $q.notify will be released