improve bulk update req ui

This commit is contained in:
r888888888
2015-04-21 17:22:16 -07:00
parent 3a66e521fc
commit ee4c19a0dd
6 changed files with 17 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
class BulkUpdateRequestsController < ApplicationController
respond_to :html, :xml, :json
respond_to :html, :xml, :json, :js
before_filter :member_only
before_filter :admin_only, :only => [:approve]
before_filter :load_bulk_update_request, :except => [:new, :create, :index]
@@ -36,7 +36,7 @@ class BulkUpdateRequestsController < ApplicationController
def destroy
if @bulk_update_request.editable?(CurrentUser.user)
@bulk_update_request.reject!
flash[:notice] = "Bulk update request deleted"
flash[:notice] = "Bulk update request rejected"
respond_with(@bulk_update_request, :location => bulk_update_requests_path)
else
access_denied()