Lines 206-211
$("#delColumn").on("click",function(){
Link Here
|
206 |
$("#toggle_sql_vis").toggle(); |
206 |
$("#toggle_sql_vis").toggle(); |
207 |
}); |
207 |
}); |
208 |
|
208 |
|
|
|
209 |
$(".toggle_chart_settings").click(function(){ |
210 |
$("#makechart").toggle(); |
211 |
$("#toggle_chart_settings_hid").toggle(); |
212 |
$("#toggle_chart_settings_vis").toggle(); |
213 |
}); |
214 |
|
209 |
$("#table_reports").delegate(".confirmdelete", 'click', function(){ |
215 |
$("#table_reports").delegate(".confirmdelete", 'click', function(){ |
210 |
$(this).parents('tr').attr("class","warn"); |
216 |
$(this).parents('tr').attr("class","warn"); |
211 |
if(confirm(_("Are you sure you want to delete this saved report?"))){ |
217 |
if(confirm(_("Are you sure you want to delete this saved report?"))){ |
Lines 963-969
canned reports and writing custom SQL reports.</p>
Link Here
|
963 |
$('#draw-chart').click(function() { |
969 |
$('#draw-chart').click(function() { |
964 |
|
970 |
|
965 |
var btn_text = $("#draw-chart").html(); |
971 |
var btn_text = $("#draw-chart").html(); |
966 |
$("#draw-chart").html(_('Loading...')); |
972 |
$("#draw-chart").html(_("Loading...")); |
967 |
|
973 |
|
968 |
var x_elements = $('select[name="x"]').val(); |
974 |
var x_elements = $('select[name="x"]').val(); |
969 |
var y_elements = []; |
975 |
var y_elements = []; |
Lines 973-979
canned reports and writing custom SQL reports.</p>
Link Here
|
973 |
|
979 |
|
974 |
//var headers = [% header_row.json %]; |
980 |
//var headers = [% header_row.json %]; |
975 |
headers = [% header_row.json %]; |
981 |
headers = [% header_row.json %]; |
976 |
var results = [% results.json %] |
982 |
|
|
|
983 |
var results; |
984 |
if ($('input[name="chart-include-all"]').prop('checked')) { |
985 |
results = [% allresults.json %] |
986 |
} |
987 |
else { |
988 |
results = [% results.json %] |
989 |
} |
977 |
|
990 |
|
978 |
if ($('input[name="chart-exclude-last"]').prop('checked')) { |
991 |
if ($('input[name="chart-exclude-last"]').prop('checked')) { |
979 |
results.splice(-1, 1); |
992 |
results.splice(-1, 1); |
Lines 1037-1042
canned reports and writing custom SQL reports.</p>
Link Here
|
1037 |
<div id="sql_output" style="display:none;"><span class="label">Report SQL:</span><pre>[% sql |html %]</pre></div> |
1050 |
<div id="sql_output" style="display:none;"><span class="label">Report SQL:</span><pre>[% sql |html %]</pre></div> |
1038 |
</br> |
1051 |
</br> |
1039 |
|
1052 |
|
|
|
1053 |
[% INCLUDE 'chart.inc' %] |
1054 |
|
1040 |
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="get" id="limitselect"> |
1055 |
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="get" id="limitselect"> |
1041 |
<input type="hidden" name="phase" value="Run this report"/> |
1056 |
<input type="hidden" name="phase" value="Run this report"/> |
1042 |
<input type="hidden" name="reports" value="[% report_id %]"/> |
1057 |
<input type="hidden" name="reports" value="[% report_id %]"/> |
Lines 1069-1076
canned reports and writing custom SQL reports.</p>
Link Here
|
1069 |
[% END %] |
1084 |
[% END %] |
1070 |
</table> |
1085 |
</table> |
1071 |
|
1086 |
|
1072 |
[% INCLUDE 'chart.inc' %] |
|
|
1073 |
|
1074 |
[% END %] |
1087 |
[% END %] |
1075 |
[% END %] |
1088 |
[% END %] |
1076 |
|
1089 |
|