Added in attachment tests

This commit is contained in:
Dan Brown
2016-10-23 15:25:04 +01:00
parent 7ee695d74a
commit 91220239e5
7 changed files with 205 additions and 3 deletions

View File

@ -639,6 +639,7 @@ module.exports = function (ngApp, events) {
* @param fileLink
*/
$scope.attachLinkSubmit = function(file) {
file.uploaded_to = pageId;
$http.post('/files/link', file).then(resp => {
$scope.files.unshift(resp.data);
events.emit('success', 'Link attached');