Project

General

Profile

« Previous | Next » 

Revision 2889

Added by sgarg almost 19 years ago

Fix in Javascript to set the stage correctly

View differences:

lib/style/common/templates/getReviews.tmpl
9 9
  <script src="@systemidserver@@style-common-path@/review_behaviors.js"></script>
10 10
  <link href="@systemidserver@@style-common-path@/reviews.css" media="all" rel="Stylesheet" type="text/css" />
11 11

  
12

  
13 12
</head>
14 13

  
15 14
[% IF reviewdocid != ''%]
......
22 21
	<div class="comment_form">
23 22
	<p class="sectionnames">Moderator Actions</p>
24 23
	<form target="_top" id="reviewForm" method="POST" action="@cgi-prefix@/register-dataset.cgi">
25
		<input value="mod_accept" name="stage" type="hidden">
24
		<input value="mod_accept" id="stage" name="stage" type="hidden">
26 25
		<input value="esa" name="cfg" type="hidden">
27 26
		<input name="docid" type="hidden" value="[%docid%]">
28 27
	<h3 style="margin-bottom: -18px;" class="review_emphasis">Please comment</h3>
......
31 30
	<textarea name="review" rows="5" cols="25"></textarea>
32 31
	</li>
33 32
	<li>
34
	<input name="Accept" value=" Accept " type="SUBMIT" onClick="this.parentNode.stage.value='mod_accept';">
35
	<input name="Decline" value="Decline" type="SUBMIT" onClick="this.parentNode.stage.value='mod_decline';">
36
	<input name="Revise" value=" Revise " type="SUBMIT" onClick="this.parentNode.stage.value='mod_revise';">
33
	<input name="Accept" value=" Accept " type="SUBMIT" onClick="document.getElementById('stage').value='mod_accept';">
34
	<input name="Decline" value="Decline" type="SUBMIT" onClick="document.getElementById('stage').value='mod_decline';">
35
	<input name="Revise" value=" Revise " type="SUBMIT" onClick="document.getElementById('stage').value='mod_revise';">
37 36
	</form>
38 37
	</div>
39 38
[% END %]
......
50 49
        No reviews found.
51 50
[% END %]
52 51
 
53
<script>
54
</script>
55 52
</body>
56 53
</html>
57 54

  

Also available in: Unified diff