Css Progress, File Name..
This commit is contained in:
parent
1015146912
commit
f3cbeeb408
3 changed files with 12 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue