app/views/activities/_status_update.html.erb in muck-activities-0.1.26 vs app/views/activities/_status_update.html.erb in muck-activities-0.1.27
- old
+ new
@@ -1,11 +1,11 @@
<div id="status-update">
<%= output_errors(t('muck.users.problem_with_status'), {:class => 'help-box'}, @activity) %>
- <% remote_form_for(:activity,
- :url => activities_path(:parent_id => activities_object, :parent_type => activities_object.class, :format => 'js'),
- :html => { :id => 'status_update_form', :class => 'clear',
- :action => activities_path(:parent_id => activities_object, :parent_type => activities_object.class) } ) do |f| -%>
+ <% form_for(:activity,
+ :url => activities_path(:parent_id => activities_object, :parent_type => activities_object.class),
+ :html => { :id => 'status_update_form', :class => 'clear ajax',
+ :action => activities_path(:parent_id => activities_object, :parent_type => activities_object.class) } ) do |f| -%>
<div id="progress-bar" style="display:none;">
<h3><%= t('muck.activities.updating_status_message') %></h3>
<img src="/images/loading.gif" alt="progress bar">
</div>
<div id="status-update-field" class="status-update-dim">
@@ -23,13 +23,13 @@
jQuery(document).ready(function() {
jQuery('#status_update').click(function(){
jQuery('#status-update-field').removeClass('status-update-dim');
jQuery('#status-update-field').addClass('status-update-lit');
});
-
jQuery("#status_update_form").submit(function() {
jQuery("#status-update-field").hide();
jQuery("#submit_status").hide();
jQuery("#progress-bar").show();
+ return true;
});
});
<% end -%>
\ No newline at end of file