Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
maxwell 2010-11-21 23:01:43 -08:00
commit 60dd2f8e60
2 changed files with 10 additions and 4 deletions

View file

@ -77,9 +77,16 @@ class PhotosController < ApplicationController
if photo
photo.destroy
flash[:notice] = I18n.t 'photos.destroy.notice'
if photo.status_message_id
respond_with :location => photo.status_message
else
respond_with :location => photos_path
end
else
respond_with :location => photos_path
end
respond_with :location => photo.status_message
end
def show
@ -108,7 +115,6 @@ class PhotosController < ApplicationController
if current_user.update_post( photo, params[:photo] )
flash.now[:notice] = I18n.t 'photos.update.notice'
respond_to do |format|
format.html
format.js{ render :json => photo, :status => 200 }
end
else

View file

@ -15,7 +15,7 @@
onProgress: function(id, fileName, loaded, total){
alert(;
},
onSubmit: function(id, fileName){