summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-07-13 16:13:42 +0200
committermr <mr@mrautenberg.de>2011-07-13 16:13:42 +0200
commit6505452f82c04017911e1ca1713c9fd08b775249 (patch)
treeb48b1212739606308a6643a994797b3374e1b8c8
parentda05e77d831aa174adfa8d487345f2c6f3a80ec3 (diff)
fix invalid HTML
-rwxr-xr-xpublic/javascripts/toxcreate.js4
-rw-r--r--views/model.haml5
2 files changed, 5 insertions, 4 deletions
diff --git a/public/javascripts/toxcreate.js b/public/javascripts/toxcreate.js
index 1769623..68cd769 100755
--- a/public/javascripts/toxcreate.js
+++ b/public/javascripts/toxcreate.js
@@ -4,10 +4,10 @@ $(function() {
var id = id;
this.bind("click", function() {
if($("a#show_model_" + id + "_warnings").html()=="show") {
- $("dd#model_" + id + "_warnings").slideDown("slow");
+ $("div#model_" + id + "_warnings").slideDown("slow");
$("a#show_model_" + id + "_warnings").html("hide");
}else{
- $("dd#model_" + id + "_warnings").slideUp("slow");
+ $("div#model_" + id + "_warnings").slideUp("slow");
$("a#show_model_" + id + "_warnings").html("show");
}
return false;
diff --git a/views/model.haml b/views/model.haml
index d54150d..d2637c8 100644
--- a/views/model.haml
+++ b/views/model.haml
@@ -50,8 +50,9 @@
= model.task_uri
- if model.warnings
%dt Warnings:
- %a{:href => "#", :id => "show_model_#{model.id}_warnings"} show
- %dd{:id => "model_#{model.id}_warnings", :style => "display: none;"}= model.warnings
+ %dd
+ %a{:href => "#", :id => "show_model_#{model.id}_warnings"} show
+ %div{:id => "model_#{model.id}_warnings", :style => "display: none;"}= model.warnings
%dt Algorithm:
%dd= toggle_link("#lazar_description","lazar")
- if model.type