change ui for delete backend

This commit is contained in:
Yan
2017-11-07 20:00:51 +06:30
parent 9f09079b94
commit 6dd0faee10
27 changed files with 143 additions and 95 deletions

View File

@@ -134,8 +134,9 @@ class Settings::MenuItemInstancesController < ApplicationController
item = MenuItem.find(catID.menu_item_id)
category = MenuCategory.find(item.menu_category_id)
end
flash[:notice] = 'Menu item instance was successfully destroyed.'
render :json => {:status=> "Success", :url => settings_menu_category_simple_menu_item_path(category,catID) }.to_json
# respond_to do |format|
# respond_to do |format|
# format.html { redirect_to settings_menu_category_simple_menu_item_path(category,catID), notice: 'Menu item instance was successfully destroyed.' }
# format.json { head :no_content }
# end