Navigation Menu

Skip to content

Commit

Permalink
Remove form_remote for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lecavelier committed Oct 16, 2013
1 parent 06fbd98 commit 449ed62
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/views/admin/sidebar/index.html.erb
Expand Up @@ -3,16 +3,7 @@
<% end %>

<p class='help-block'><%= _("Drag and drop to change the sidebar items displayed on this blog. To remove items from the sidebar just click 'remove'. Changes are saved immediately, but not activated until you click the 'Publish changes' button")%>.</p>
<%= form_remote_tag(:url => {:action=>'publish',
:method => :post },
:loading => "new Element.show('update_spinner')",
:success => "var g = new k.Growler({location : 'br'});
g.info('Sidebar was successfully saved', {life: 3});
new Element.hide('update_spinner')",
:failure => "var g = new k.Growler({location : 'br'});
g.error('Oops, something wrong happened', {life: 3});
new Element.hide('update_spinner')") \
do %>
<%= form_tag(:url => {:action=>'publish', :method => :post }, :remote => true, :class => 'spinner') do %>

<div class='form-actions'>
<%= cancel_or_save(_('Publish changes'))%>
Expand Down

0 comments on commit 449ed62

Please sign in to comment.