From b157b9e486a99fe49ffc45408fddc6787e9ae3a7 Mon Sep 17 00:00:00 2001 From: Egor Philippov Date: Thu, 2 Feb 2012 13:27:55 -0800 Subject: [PATCH] Closses #437 --- .../_annotation_category_edit.html.erb | 2 +- app/views/annotation_categories/_boot.js.erb | 29 +++++++++++++++ .../annotation_categories/index.html.erb | 35 ------------------- config/routes.rb | 1 + 4 files changed, 31 insertions(+), 36 deletions(-) diff --git a/app/views/annotation_categories/_annotation_category_edit.html.erb b/app/views/annotation_categories/_annotation_category_edit.html.erb index 87b32b9631..13a5f038b3 100755 --- a/app/views/annotation_categories/_annotation_category_edit.html.erb +++ b/app/views/annotation_categories/_annotation_category_edit.html.erb @@ -33,7 +33,7 @@

<%=h(annotation_category.annotation_category_name)%>

- <%= form_for annotation_category, + <%= form_for :annotation_category, :as => :annotation_category, :url => {:action => 'update_annotation_category', :id => annotation_category.id}, diff --git a/app/views/annotation_categories/_boot.js.erb b/app/views/annotation_categories/_boot.js.erb index bfa4442b32..9bdc1e2b4e 100644 --- a/app/views/annotation_categories/_boot.js.erb +++ b/app/views/annotation_categories/_boot.js.erb @@ -1,5 +1,34 @@ diff --git a/app/views/annotation_categories/index.html.erb b/app/views/annotation_categories/index.html.erb index f463b83580..e1143765ee 100644 --- a/app/views/annotation_categories/index.html.erb +++ b/app/views/annotation_categories/index.html.erb @@ -7,41 +7,6 @@ "livepipe/window.js", "livepipe/tabs.js" %> - - <%if @assignment.past_due_date?%>
diff --git a/config/routes.rb b/config/routes.rb index 6bd49a284e..5fb9ae91db 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -196,6 +196,7 @@ get 'delete_annotation_category' get 'download' get 'yml_upload' + post 'add_annotation_category' post 'update_annotation_category' end end