Delete link handle JavaScript disabled

This commit is contained in:
chris2tof committed 2011-05-13 09:59:29 +08:00
1 parent 24ae7ed5e3
commit 4399804e19
2 files changed
+14 -4

No files matched your search

+7 -4
View File
@@ -61,10 +61,6 @@ class Admin::LinksController < ApplicationController
@link = Link.find(params[:id])
@link.destroy
@link.destroy_i18n_variable
end
def delete
destroy
respond_to do |format|
format.html {
redirect_to admin_items_url
@@ -73,4 +69,11 @@ class Admin::LinksController < ApplicationController
end
end
def delete
respond_to do |format|
format.html {}
format.js { destroy }
end
end
end