This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

edit page form hijacking from extension

  • Loading branch information...
pkqk committed Oct 17, 2008
1 parent f3ba919 commit 5b82a9f1b27300febedbf0e2589713e92f55d7bc
Showing with 2 additions and 0 deletions.
  1. +1 −0 app/views/preview/_show.html.haml
  2. +1 −0 page_preview_extension.rb
@@ -0,0 +1 @@
+= submit_tag :preview, :value => 'Preview', :class => 'button'
@@ -12,6 +12,7 @@ class PagePreviewExtension < Radiant::Extension
def activate
# admin.tabs.add "Page Preview", "/admin/page_preview", :after => "Layouts", :visibility => [:all]
+ admin.page.edit.add :main, "/preview/show", :after => "edit_buttons"
end
def deactivate

0 comments on commit 5b82a9f

Please sign in to comment.