Permalink
Browse files

added "Removing X..." messages when deleting pages, snippets, layouts…

…, and users
  • Loading branch information...
1 parent ea462b4 commit c7176fe2d0a474c74103faaf4e7f944f783616fb @jlong jlong committed Oct 1, 2009
@@ -9,7 +9,7 @@
= image('layout', :alt => 'layout-icon')
= h @layout.name
-- form_for [:admin, @layout], :html => { :method => 'delete' } do
+- form_for [:admin, @layout], :html => { :method => 'delete', :onsubmit_status=>"Removing layout…" } do
%p.buttons
%input.button{:type=>"submit", :value=>"Delete Layout"}/
or
@@ -14,7 +14,7 @@
%tbody
= render_node @page, :simple => true
-- form_for [:admin, @page.becomes(Page)], :html => {:method => :delete} do
+- form_for [:admin, @page.becomes(Page)], :html => {:method => :delete, :onsubmit_status=>"Removing pages…"} do
%p.buttons
%input.button{:type=>"submit", :value=>"Delete Pages"}/
or
@@ -12,7 +12,7 @@
= image('snippet', :alt => "snippet-icon")
%span.title= @snippet.name
-- form_for [:admin, @snippet], :html => {:method => :delete} do
+- form_for [:admin, @snippet], :html => {:method => :delete, :onsubmit_status=>"Removing snippet…"} do
%p.buttons
%input.button{:type=>"submit", :value=>"Delete Snippet"}/
or
@@ -11,7 +11,7 @@
%td.user
%span.title= @user.name
-- form_for [:admin, @user], :html => { :method => :delete } do
+- form_for [:admin, @user], :html => { :method => :delete, :onsubmit_status=>"Removing user…" } do
%p.buttons
%input.button{:type=>"submit", :value=>"Delete User"}/
or

0 comments on commit c7176fe

Please sign in to comment.