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