change ui for delete backend
This commit is contained in:
@@ -74,10 +74,12 @@ class Settings::PromotionsController < ApplicationController
|
||||
pp.destroy
|
||||
end
|
||||
@promotion.destroy
|
||||
respond_to do |format|
|
||||
format.html { redirect_to settings_promotions_path, notice: 'Promotion was successfully destroyed.' }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
flash[:notice] = 'Promotion was successfully destroyed.'
|
||||
render :json => {:status=> "Success", :url => settings_promotions_path }.to_json
|
||||
# respond_to do |format|
|
||||
# format.html { redirect_to settings_promotions_path, notice: 'Promotion was successfully destroyed.' }
|
||||
# format.json { head :no_content }
|
||||
# end
|
||||
end
|
||||
|
||||
def find_item_instance
|
||||
|
||||
Reference in New Issue
Block a user