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 |
<button id='import'><img alt="choose" src="[% interface %]/[% theme %]/images/arrow.gif" width="32" /></button> |
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-91
Link Here
|
79 |
[% END %] |
80 |
[% END %] |
80 |
<script type="text/javascript"> |
81 |
<script type="text/javascript"> |
81 |
//<![CDATA[ |
82 |
//<![CDATA[ |
82 |
|
|
|
83 |
$( document ).ready( function(){ |
83 |
$( document ).ready( function(){ |
84 |
$('#import').on('click', function(){ |
84 |
$(".choosebt").on("click", function(){ |
85 |
var temp = "[% resul.to_report| replace('"', '\"') %]"; |
85 |
var toreport = $(this).siblings(".toreport").text(); |
86 |
temp.replace( "'", "\\'"); |
86 |
report(toreport); |
87 |
temp.replace( "\\r", "\\\\r"); |
|
|
88 |
report( temp ); |
89 |
}); |
87 |
}); |
90 |
}); |
88 |
}); |
91 |
|
89 |
|
92 |
- |
|
|