Template:Bielefeld Recipes 2010
From 2010.igem.org
(Difference between revisions)
Line 74: | Line 74: | ||
$.get( | $.get( | ||
"http://www.igem-bielefeld.de/recipes/comment.php", | "http://www.igem-bielefeld.de/recipes/comment.php", | ||
- | { rid: " | + | {rid: $("#"+form_id+" #rid").val() ,author:$("#"+form_id+" #author").val(),title:$("#"+form_id+" #title").val(),text:$("#"+form_id+" #text").val()}, |
function(data){ | function(data){ | ||
- | alert( | + | alert($("#"+form_id).attr("id")); |
} | } | ||
); | ); | ||
Line 88: | Line 88: | ||
var statusHTML = ""; | var statusHTML = ""; | ||
for (var i=0; i<recipeList.length-1; i++) { | for (var i=0; i<recipeList.length-1; i++) { | ||
+ | var rid = recipeList[i].rid; | ||
var author = recipeList[i].author; | var author = recipeList[i].author; | ||
var title = recipeList[i].title; | var title = recipeList[i].title; | ||
var text = recipeList[i].text; | var text = recipeList[i].text; | ||
var taste = recipeList[i].taste; | var taste = recipeList[i].taste; | ||
+ | var comments = recipeList[i].comments; | ||
$('#recipe_container').append('<a name="'+title+'"></a><h3 style="clear:both;"> <span class="mw-headline"> <b>'+title+'</b> </span></h3>'); | $('#recipe_container').append('<a name="'+title+'"></a><h3 style="clear:both;"> <span class="mw-headline"> <b>'+title+'</b> </span></h3>'); | ||
Line 136: | Line 138: | ||
$('#review1_'+i).append("<div class='histogram' style='width:1.875px; background-color:#4444ff'></div>"); | $('#review1_'+i).append("<div class='histogram' style='width:1.875px; background-color:#4444ff'></div>"); | ||
$('#review1_'+i).append("<div style='position:absolute;top:0px;right:5px;'>(5)</div>"); | $('#review1_'+i).append("<div style='position:absolute;top:0px;right:5px;'>(5)</div>"); | ||
- | $('#recipe_container').append( insert_form_comment( | + | $('#recipe_container').append( "<br />"+insert_form_comment(rid,comments) ); |
} // for-Schleife Ende | } // for-Schleife Ende | ||
- | |||
} | } | ||
Revision as of 16:19, 16 September 2010