change ui for delete backend
This commit is contained in:
@@ -112,6 +112,7 @@ class Settings::SetMenuItemsController < ApplicationController
|
||||
File.delete(path_to_file) if File.exist?(path_to_file)
|
||||
abc = MenuItem.deleteRecursive(@settings_menu_item)
|
||||
|
||||
flash[:notice] = 'Menu item was successfully destroyed.'
|
||||
render :json => {:status=> "Success", :url => settings_menu_category_simple_menu_items_path }.to_json
|
||||
# respond_to do |format|
|
||||
# format.html { redirect_to settings_menu_category_set_menu_items_path(category_id,item_id), notice: 'Menu item was successfully destroyed.' }
|
||||
|
||||
Reference in New Issue
Block a user