diff --git a/app/helpers/orbit_backend_helper.rb b/app/helpers/orbit_backend_helper.rb index 3b19e6d..1dca626 100644 --- a/app/helpers/orbit_backend_helper.rb +++ b/app/helpers/orbit_backend_helper.rb @@ -83,8 +83,8 @@ module OrbitBackendHelper render :partial => '/admin/categories/select_form', :locals => {:f=> f, :module_app=>module_app, :categories=>module_app.categories.enabled } end - def select_tag(f, module_app, object) - render :partial => '/admin/tags/tag_form', :locals => {:f=> f, :module_app=>module_app, :object=>object, :tags=>module_app.tags } + def select_tag(f, module_app) + render :partial => '/admin/tags/tag_form', :locals => {:f=> f, :module_app=>module_app, :tags=>module_app.tags } end end diff --git a/app/views/admin/tags/_tag_form.html.erb b/app/views/admin/tags/_tag_form.html.erb index 2e675bc..b3350d3 100644 --- a/app/views/admin/tags/_tag_form.html.erb +++ b/app/views/admin/tags/_tag_form.html.erb @@ -1,12 +1,12 @@ -
- + +
<% tags.each do |tag| %> -
+
+ @@ -53,8 +53,8 @@ type : "post", data: $("input[name^='tag']").serialize(), }).done(function(data){ - $("#select_tags").append(''); + $("#select_tags .controls").append(''); $("#add_tag_btn").css("margin-left", "180px"); $('#tagModal').modal('hide'); }); diff --git a/app/views/admin/tags/index.html.erb b/app/views/admin/tags/index.html.erb index f341a3d..8064504 100644 --- a/app/views/admin/tags/index.html.erb +++ b/app/views/admin/tags/index.html.erb @@ -46,7 +46,7 @@ <% if @is_module_tag %>
- + <%= form_tag add_from_default_admin_module_app_tags_path(:module_app_id=>@module_app.id), id: "filter-default-tag", method: :post, remote: true do %>