Lines 9-15
Link Here
|
9 |
var inject_old = function(comment) { |
9 |
var inject_old = function(comment) { |
10 |
[% IF ( reviewid ) %] |
10 |
[% IF ( reviewid ) %] |
11 |
[% IF ( cgi_debug ) %]alert(_('injecting OLD comment: ')+comment);[% END %] |
11 |
[% IF ( cgi_debug ) %]alert(_('injecting OLD comment: ')+comment);[% END %] |
12 |
parent.opener.$('#c[% reviewid %] p').prev("small").prev("h5").html("Your edited comment (preview, pending approval)"); |
12 |
parent.opener.$('#c[% reviewid %] p').prev("small").prev("h5").html(_("Your edited comment (preview, pending approval)")); |
13 |
parent.opener.$('#c[% reviewid %] p').html(comment); |
13 |
parent.opener.$('#c[% reviewid %] p').html(comment); |
14 |
parent.opener.$('#c[% reviewid %] p').append("<a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber | uri %]&reviewid=[% reviewid | uri%]\');\">Edit<\/a>"); |
14 |
parent.opener.$('#c[% reviewid %] p').append("<a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber | uri %]&reviewid=[% reviewid | uri%]\');\">Edit<\/a>"); |
15 |
[% END %] |
15 |
[% END %] |
Lines 19-25
Link Here
|
19 |
[% IF ( cgi_debug ) %]alert(_("injecting NEW comment: ") +comment);[% END %] |
19 |
[% IF ( cgi_debug ) %]alert(_("injecting NEW comment: ") +comment);[% END %] |
20 |
parent.opener.$('#newcomment').attr("class","yours"); |
20 |
parent.opener.$('#newcomment').attr("class","yours"); |
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=[% biblionumber |uri%]\');\">Edit<\/a><\/p>" |
24 |
"<a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber |uri%]\');\">Edit<\/a><\/p>" |
25 |
); |
25 |
); |
26 |
- |
|
|