summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-07-13 16:07:52 +0200
committermr <mr@mrautenberg.de>2011-07-13 16:07:52 +0200
commitfeccf0995ef995a4d32119fb5582b9a37b7f9dd0 (patch)
treedfcfd68e5ddafe3e2be6b84c29406751eed8ac1d
parent425cbf28a4686e59e9e46b9987f1e3d8348f39a1 (diff)
fix invalid HTML
-rwxr-xr-xpublic/javascripts/toxcreate.js4
-rw-r--r--views/model.haml6
2 files changed, 6 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 c64d81e..e9d3b95 100644
--- a/views/model.haml
+++ b/views/model.haml
@@ -45,8 +45,10 @@
%dd= model.error_messages
- 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