Lines 64-70
Link Here
|
64 |
<td>[% resul.used %] times</td> |
64 |
<td>[% resul.used %] times</td> |
65 |
<td> |
65 |
<td> |
66 |
[% IF ( resul.to_report ) %] |
66 |
[% IF ( resul.to_report ) %] |
67 |
<a href="javascript:report('[% resul.to_report |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]')"><img alt="choose" src="[% interface %]/[% theme %]/images/arrow.gif" width="32" /></a> |
67 |
<button class="choosebt">Choose</button> |
|
|
68 |
<p class="toreport" style="display:none">[% resul.to_report |replace('\n', '\\n') |replace('\r', '\\r') |html %]</p> |
68 |
[% END %] |
69 |
[% END %] |
69 |
</td> |
70 |
</td> |
70 |
</tr> |
71 |
</tr> |
Lines 79-84
Link Here
|
79 |
[% END %] |
80 |
[% END %] |
80 |
<script type="text/javascript"> |
81 |
<script type="text/javascript"> |
81 |
//<![CDATA[ |
82 |
//<![CDATA[ |
|
|
83 |
$( document ).ready( function(){ |
84 |
$(".choosebt").on("click", function(){ |
85 |
var toreport = $(this).siblings(".toreport").text(); |
86 |
report(toreport); |
87 |
}); |
88 |
}); |
89 |
|
82 |
function report(summary) |
90 |
function report(summary) |
83 |
{ |
91 |
{ |
84 |
var doc = opener.document; |
92 |
var doc = opener.document; |
85 |
- |
|
|