Css Progress, File Name..

This commit is contained in:
Eole 2016-05-09 23:38:13 +02:00
parent 1015146912
commit f3cbeeb408
3 changed files with 12 additions and 2 deletions

View file

@ -25,6 +25,7 @@ mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', '
);
$('#editImageModal').modal('show');
$("#fileupload").fileupload({
replaceFileInput: false,
formData: {task: "image", token: Identity.getToken(), action: "uploadImage", id: $scope.data.id},
/* ... */
progressall: function (e, data) {
@ -36,7 +37,8 @@ mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', '
},
add: function (e, data) {
data.process();
data.context = $('<button/>').text('Upload')
$.each($("#upload_button"), function(){$(this).detach();});
data.context = $('<button id="upload_button"/>').text('Upload')
.click(function () {
$(this).detach();
data.submit();