converted image picker to blade-based component

Also updated some other JS translations
This commit is contained in:
Dan Brown
2016-12-24 15:21:19 +00:00
parent 242dc21876
commit 05316c90ba
15 changed files with 120 additions and 97 deletions

View File

@ -576,7 +576,7 @@ export default function (ngApp, events) {
* Get files for the current page from the server.
*/
function getFiles() {
let url = window.baseUrl(`/attachments/get/page/${pageId}`)
let url = window.baseUrl(`/attachments/get/page/${pageId}`);
$http.get(url).then(resp => {
$scope.files = resp.data;
currentOrder = resp.data.map(file => {return file.id}).join(':');
@ -672,7 +672,7 @@ export default function (ngApp, events) {
$scope.editFile.link = '';
}
$scope.editFile = false;
events.emit('success', 'Attachment details updated');
events.emit('success', resp.headers('message-success'));
}, checkError('edit'));
};