diff --git a/client/js/controllers/image/edit.js b/client/js/controllers/image/edit.js index be4eb39..01dbd18 100755 --- a/client/js/controllers/image/edit.js +++ b/client/js/controllers/image/edit.js @@ -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 = $('').text('Upload') + $.each($("#upload_button"), function(){$(this).detach();}); + data.context = $('').text('Upload') .click(function () { $(this).detach(); data.submit(); diff --git a/client/partials/image/edit.html b/client/partials/image/edit.html index d5c3621..667e029 100755 --- a/client/partials/image/edit.html +++ b/client/partials/image/edit.html @@ -34,10 +34,12 @@ - +