| Line 24... |
Line 24... |
| 24 |
.dialog( {
|
24 |
.dialog( {
|
| 25 |
height: 470,
|
25 |
height: 470,
|
| 26 |
width: 700,
|
26 |
width: 700,
|
| 27 |
buttons: {
|
27 |
buttons: {
|
| 28 |
"OK": function() {
|
28 |
"OK": function() {
|
| 29 |
inputContent = tinyMCE.activeEditor.getContent();
|
29 |
inputContent = $(this).find('textarea').val();
|
| 30 |
if (inputContent == "" || inputContent == '<p><span style="cursor:pointer;color:blue">Click here to Edit</span></p>'){
|
30 |
if (inputContent == "" || inputContent == 'Click here to Edit'){
|
| 31 |
inputContent = '<span style="cursor:pointer;color:blue">Click here to Edit</span>';
|
31 |
inputContent = 'Click here to Edit';
|
| 32 |
}
|
32 |
}
|
| 33 |
$('#erhtml').val(inputContent);
|
33 |
$('#erhtml').val(inputContent);
|
| 34 |
$('#expertReviewHtml').val(inputContent);
|
34 |
$('#expertReviewHtml').val(inputContent);
|
| 35 |
clicked.html(inputContent);
|
35 |
clicked.html(inputContent);
|
| 36 |
$("#indexid").val(clicked.closest('tr').find('td').html());
|
36 |
$("#indexid").val(clicked.closest('tr').find('td').html());
|
| Line 39... |
Line 39... |
| 39 |
$("#changeContent").submit();
|
39 |
$("#changeContent").submit();
|
| 40 |
}
|
40 |
}
|
| 41 |
}
|
41 |
}
|
| 42 |
},
|
42 |
},
|
| 43 |
modal: true});
|
43 |
modal: true});
|
| 44 |
tinymce.init({
|
- |
|
| 45 |
selector: "textarea",
|
- |
|
| 46 |
plugins: [
|
- |
|
| 47 |
"advlist autolink lists link image charmap print preview anchor",
|
- |
|
| 48 |
"searchreplace visualblocks code fullscreen",
|
- |
|
| 49 |
"insertdatetime media table contextmenu paste"
|
- |
|
| 50 |
],
|
- |
|
| 51 |
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
|
- |
|
| 52 |
autosave_ask_before_unload: false
|
- |
|
| 53 |
});
|
- |
|
| 54 |
});
|
44 |
});
|
| 55 |
});
|
45 |
});
|
| 56 |
</script>
|
46 |
</script>
|
| 57 |
<link type="text/css" href="../jquery/jqueryui/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" />
|
47 |
<link type="text/css" href="../jquery/jqueryui/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" />
|
| 58 |
<style type="text/css">
|
48 |
<style type="text/css">
|
| Line 112... |
Line 102... |
| 112 |
#foreach ($source in $sources)
|
102 |
#foreach ($source in $sources)
|
| 113 |
<option title="$source.getSourceUrl()" value="$source.getSource()">$source.getSource()</option>
|
103 |
<option title="$source.getSourceUrl()" value="$source.getSource()">$source.getSource()</option>
|
| 114 |
#end
|
104 |
#end
|
| 115 |
</select>
|
105 |
</select>
|
| 116 |
<br><br>
|
106 |
<br><br>
|
| 117 |
<label for="password">Expert Review</label><br>
|
107 |
<label for="password">Expert Review</label><br>
|
| 118 |
<div class="editable new" style="border:1px solid red;padding:2px"><span style="cursor:pointer;color:blue">Click here to Edit</span></div><br><br>
|
108 |
<div class="editable new" style="border:1px solid red;padding:2px"><span style="cursor:pointer;color:blue">Click here to Edit</span></div><br><br>
|
| 119 |
<label for="sourceUrl">Source Url</label><br>
|
109 |
<label for="sourceUrl">Source Url</label><br>
|
| 120 |
<input type="textbox" style="width:200px" class="text ui-widget-content ui-corner-all" name="sourceUrl" id="sourceUrl"/>
|
110 |
<input type="textbox" style="width:200px" class="text ui-widget-content ui-corner-all" name="sourceUrl" id="sourceUrl"/>
|
| 121 |
<input type="hidden" name="expertReviewHtml" id="expertReviewHtml"/><br><br>
|
111 |
<input type="hidden" name="expertReviewHtml" id="expertReviewHtml"/><br><br>
|
| 122 |
<input type="submit" value="Create" name="submit"></input>
|
112 |
<input type="submit" value="Create" name="submit"></input>
|
| Line 140... |
Line 130... |
| 140 |
#foreach($review in $expertReviewByEntity)
|
130 |
#foreach($review in $expertReviewByEntity)
|
| 141 |
<tr>
|
131 |
<tr>
|
| 142 |
#set ($iter = $iter + 1)
|
132 |
#set ($iter = $iter + 1)
|
| 143 |
<td>$iter</td>
|
133 |
<td>$iter</td>
|
| 144 |
<td>$review.getSource()</td>
|
134 |
<td>$review.getSource()</td>
|
| 145 |
<td><div#if ($action.canAddDelete($review)) class="editable"#end>$review.getReviewContent()</div></td>
|
135 |
<td><div#if ($action.canAddDelete($review)) class="editable" #end style="font-style:italic">$review.getReviewContent()</div></td>
|
| 146 |
<td>$review.getStatus()</td>
|
136 |
<td>$review.getStatus()</td>
|
| 147 |
<td>#if ($review.getUrl())
|
137 |
<td>#if ($review.getUrl())
|
| 148 |
$review.getUrl()
|
138 |
$review.getUrl()
|
| 149 |
#else Not provided
|
139 |
#else Not provided
|
| 150 |
#end</td>
|
140 |
#end</td>
|