Lines 32-40
Link Here
|
32 |
[% INCLUDE 'calendar.inc' %] |
32 |
[% INCLUDE 'calendar.inc' %] |
33 |
<style type="text/css"> |
33 |
<style type="text/css"> |
34 |
#sql { width: 90%; height: 9em;} |
34 |
#sql { width: 90%; height: 9em;} |
|
|
35 |
#update_sql .modal-dialog { width: 80%; } |
36 |
ins { background-color: #e6ffe6; } |
37 |
del { background-color: #ffe6e6; } |
38 |
#col1 ins, #col2 del { display: none; } |
39 |
.show_sql { font-family: monospace; } |
35 |
</style> |
40 |
</style> |
36 |
[% IF ( saved1 ) %] |
41 |
[% IF ( saved1 ) %] |
37 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
42 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
|
|
43 |
<script type="text/javascript" src="[% interface %]/lib/jsdiff/jsdiff.min.js"></script> |
38 |
[% INCLUDE 'datatables.inc' %] |
44 |
[% INCLUDE 'datatables.inc' %] |
39 |
[% END %] |
45 |
[% END %] |
40 |
|
46 |
|
Lines 172-182
$("#delColumn").on("click",function(){
Link Here
|
172 |
var ltitle = $(this).text(); |
178 |
var ltitle = $(this).text(); |
173 |
var report_id = $(this).data("report_id"); |
179 |
var report_id = $(this).data("report_id"); |
174 |
var page = $(this).attr("href"); |
180 |
var page = $(this).attr("href"); |
175 |
$("#update_sql .modal-body").load(page + " div"); |
181 |
$("#update_sql .modal-body").load(page + " div", function(){ |
|
|
182 |
var diff1 = $("#col1 .show_sql").text(); |
183 |
var diff2 = $("#col2 .show_sql").text(); |
184 |
var diffs = diffString( escape(diff1), escape(diff2) ); |
185 |
$("#col1 .show_sql,#col2 .show_sql").html(diffs); |
186 |
}); |
176 |
$('#update_sql').modal('show'); |
187 |
$('#update_sql').modal('show'); |
177 |
$("#update_sql_button").attr("href", "/cgi-bin/koha/reports/guided_reports.pl?phase=Use saved&op=convert&report_id=" + report_id); |
188 |
$("#update_sql_button").attr("href", "/cgi-bin/koha/reports/guided_reports.pl?phase=Use saved&op=convert&report_id=" + report_id); |
178 |
}); |
189 |
}); |
179 |
$("#update_sql").on("hidden", function(){ |
190 |
|
|
|
191 |
$("#update_sql").on("hidden.bs.modal", function(){ |
180 |
$("#update_sql_label").html(""); |
192 |
$("#update_sql_label").html(""); |
181 |
$("#update_sql .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
193 |
$("#update_sql .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
182 |
}); |
194 |
}); |
183 |
- |
|
|