Lines 66-74
Link Here
|
66 |
<td>[% PROCESS authresult summary=resul.summary %]</td> |
66 |
<td>[% PROCESS authresult summary=resul.summary %]</td> |
67 |
<td>[% resul.used | html %] times</td> |
67 |
<td>[% resul.used | html %] times</td> |
68 |
<td> |
68 |
<td> |
69 |
[% IF ( resul.to_report ) %] |
69 |
[% IF ( resul.to_report ) %] |
70 |
<a href="javascript:report('[% resul.to_report |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]')"><img alt="choose" src="[% interface | html %]/[% theme | html %]/images/arrow.gif" width="32" /></a> |
70 |
<button class="choosebt">Choose</button> |
71 |
[% END %] |
71 |
<p class="toreport" style="display:none">[% resul.to_report |replace('\n', '\\n') |replace('\r', '\\r') |html %]</p> |
|
|
72 |
[% END %] |
72 |
</td> |
73 |
</td> |
73 |
</tr> |
74 |
</tr> |
74 |
[% END %] |
75 |
[% END %] |
Lines 83-88
Link Here
|
83 |
|
84 |
|
84 |
[% MACRO jsinclude BLOCK %] |
85 |
[% MACRO jsinclude BLOCK %] |
85 |
<script type="text/javascript"> |
86 |
<script type="text/javascript"> |
|
|
87 |
$(document).ready(function(){ |
88 |
$(".choosebt").on("click",function(){ |
89 |
var toreport = $(this).siblings(".toreport").text(); |
90 |
report(toreport); |
91 |
}); |
92 |
}); |
86 |
function report(summary){ |
93 |
function report(summary){ |
87 |
var doc = opener.document; |
94 |
var doc = opener.document; |
88 |
var field = doc.getElementById('[% index | html %]'); |
95 |
var field = doc.getElementById('[% index | html %]'); |
89 |
- |
|
|