Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

edit page form hijacking from extension

  • Loading branch information...
commit 5b82a9f1b27300febedbf0e2589713e92f55d7bc 1 parent f3ba919
@pkqk pkqk authored
Showing with 2 additions and 0 deletions.
  1. +1 −0  app/views/preview/_show.html.haml
  2. +1 −0  page_preview_extension.rb
View
1  app/views/preview/_show.html.haml
@@ -0,0 +1 @@
+= submit_tag :preview, :value => 'Preview', :class => 'button'
View
1  page_preview_extension.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.