|
Lines 11-17
Link Here
|
| 11 |
<!-- TMPL_IF NAME="cgi_debug" -->alert("injecting OLD comment: " +comment);<!-- /TMPL_IF --> |
11 |
<!-- TMPL_IF NAME="cgi_debug" -->alert("injecting OLD comment: " +comment);<!-- /TMPL_IF --> |
| 12 |
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').prev("small").prev("h5").html("Your Edited Comment (preview, pending approval)"); |
12 |
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').prev("small").prev("h5").html("Your Edited Comment (preview, pending approval)"); |
| 13 |
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').html(comment); |
13 |
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').html(comment); |
| 14 |
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').append(" <a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&reviewid=<!-- TMPL_VAR NAME="reviewid" -->\');\">Edit<\/a>"); |
14 |
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').append(" <a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URI" -->&reviewid=<!-- TMPL_VAR NAME="reviewid" ESCAPE="URI"-->\');\">Edit<\/a>"); |
| 15 |
<!-- /TMPL_IF --> |
15 |
<!-- /TMPL_IF --> |
| 16 |
return 1; |
16 |
return 1; |
| 17 |
}; |
17 |
}; |
|
Lines 21-27
Link Here
|
| 21 |
parent.opener.$('#newcomment').html( |
21 |
parent.opener.$('#newcomment').html( |
| 22 |
"<h5>Your Comment (preview, pending approval)<\/h5>" + |
22 |
"<h5>Your Comment (preview, pending approval)<\/h5>" + |
| 23 |
"<p>"+comment+"<\/p>" + |
23 |
"<p>"+comment+"<\/p>" + |
| 24 |
"<a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->\');\">Edit<\/a><\/p>" |
24 |
"<a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="HTML"-->\');\">Edit<\/a><\/p>" |
| 25 |
); |
25 |
); |
| 26 |
parent.opener.$("#addcomment").prev("p").remove(); |
26 |
parent.opener.$("#addcomment").prev("p").remove(); |
| 27 |
parent.opener.$("#addcomment").remove(); |
27 |
parent.opener.$("#addcomment").remove(); |
|
Lines 66-72
Link Here
|
| 66 |
</div> |
66 |
</div> |
| 67 |
<!-- /TMPL_IF --> |
67 |
<!-- /TMPL_IF --> |
| 68 |
<form id="reviewf" action="/cgi-bin/koha/opac-review.pl<!-- TMPL_IF NAME="cgi_debug" -->?debug=1<!-- /TMPL_IF -->" method="post"> |
68 |
<form id="reviewf" action="/cgi-bin/koha/opac-review.pl<!-- TMPL_IF NAME="cgi_debug" -->?debug=1<!-- /TMPL_IF -->" method="post"> |
| 69 |
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /> |
69 |
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" ESCAPE="HTML" -->" /> |
| 70 |
<fieldset class="brief"> |
70 |
<fieldset class="brief"> |
| 71 |
<legend>Comments on <i><!--TMPL_VAR NAME="title" ESCAPE="html" --> <!-- TMPL_VAR NAME="subtitle" --></i><!-- TMPL_IF NAME="author" -->by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></legend> |
71 |
<legend>Comments on <i><!--TMPL_VAR NAME="title" ESCAPE="html" --> <!-- TMPL_VAR NAME="subtitle" --></i><!-- TMPL_IF NAME="author" -->by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></legend> |
| 72 |
<ol><li><textarea id="review" name="review" cols="60" rows="8"><!--TMPL_VAR NAME="review"--></textarea></li></ol> |
72 |
<ol><li><textarea id="review" name="review" cols="60" rows="8"><!--TMPL_VAR NAME="review"--></textarea></li></ol> |