Skip to content

Commit

Permalink
Merge pull request #635 from hoboman313/437
Browse files Browse the repository at this point in the history
Cannot add annotations to AnnotationCategories
  • Loading branch information
jerboaa committed Feb 2, 2012
2 parents e1ab659 + b157b9e commit ad12215
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 36 deletions.
Expand Up @@ -33,7 +33,7 @@
<h2><%=h(annotation_category.annotation_category_name)%></h2>

<fieldset>
<%= form_for annotation_category,
<%= form_for :annotation_category,
:as => :annotation_category,
:url => {:action => 'update_annotation_category',
:id => annotation_category.id},
Expand Down
29 changes: 29 additions & 0 deletions app/views/annotation_categories/_boot.js.erb
@@ -1,5 +1,34 @@
<script type="text/javascript">
//<![CDATA[

var modalUpload = null;
var modalDownload = null;

function upload_annotation_categories(){
modalUpload.open();
return false;
}

function download_annotation_categories(){
modalDownload.open();
return false;
}

document.observe("dom:loaded", function(){
modalUpload = new Control.Modal($('upload_dialog'),
{
overlayOpacity: 0.75,
className: 'modalUpload',
fade: false
});

modalDownload = new Control.Modal($('download_dialog'),
{
overlayOpacity: 0.75,
className: 'modalDownload',
fade: false

});
});
//]]>
</script>
35 changes: 0 additions & 35 deletions app/views/annotation_categories/index.html.erb
Expand Up @@ -7,41 +7,6 @@
"livepipe/window.js",
"livepipe/tabs.js" %>
<script type="text/javascript">
//<![CDATA[
var modalUpload = null;
var modalDownload = null;
function upload_annotation_categories(){
modalUpload.open();
return false;
}
function download_annotation_categories(){
modalDownload.open();
return false;
}
document.observe("dom:loaded", function(){
modalUpload = new Control.Modal($('upload_dialog'),
{
overlayOpacity: 0.75,
className: 'modalUpload',
fade: false
});
modalDownload = new Control.Modal($('download_dialog'),
{
overlayOpacity: 0.75,
className: 'modalDownload',
fade: false
});
});
//]]>
</script>
<%if @assignment.past_due_date?%>
<div class="notice">
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Expand Up @@ -196,6 +196,7 @@
get 'delete_annotation_category'
get 'download'
get 'yml_upload'
post 'add_annotation_category'
post 'update_annotation_category'
end
end
Expand Down

0 comments on commit ad12215

Please sign in to comment.