<% if @category.isSpecial -%>
<%= render 'special', :url => url_for(:controller => "#{@category.key}_configuration") -%>
<% else -%>
- <% form_remote_tag :url => {:controller => 'settings', :action => 'update', :category => @category.key, :subcategory => @subcategory.key, :resource_id => (@resource && @resource.id)},
- :method => :post,
- :before => "$('submit_settings').hide();$('loading_settings').show();",
- :update => 'properties',
- :script => false do -%>
+ <form onsubmit="$j('#submit_settings').hide();$j('#loading_settings').show();
+ $j.ajax({ url:'<%= ApplicationController.root_context-%>/settings/update?category=<%= @category.key -%>&subcategory=<%= @subcategory.key -%>&resource_id=<%= @resource && @resource.id -%>',
+ type:'post',
+ success:function(responseHTML){$j('#properties').text(responseHTML.responseText);$j('#loading_settings').hide();$j('#submit_settings').show()},
+ data:$j(this).serialize()});
+ return false;"
+ method='post'
+ action=''
+ >
<% subcategories = @subcategories_per_categories[@category] || [] -%>
<ul class="tabs2">
<% subcategories.each do |subcategory| -%>
</div>
<% end %>
<% end %>
+ </form>
<% end -%>
-<% end -%>
+
+
<script>
$j(document)