implement issue #32

pull/40/head
Kai Labusch 5 years ago
parent 98e48dec38
commit 57b6b7d6d3

@ -168,7 +168,11 @@ function setupInterface(data, file, urls) {
if (urls == null) return; if (urls == null) return;
let nRow = parseInt($(evt.target).text()); // let nRow = parseInt($(evt.target).text());
let tableInfo = $(evt.target).data('tableInfo');
let nRow = tableInfo.nRow;
updatePreview(nRow) updatePreview(nRow)
} }
@ -422,7 +426,7 @@ function setupInterface(data, file, urls) {
let editable_html = let editable_html =
` `
<td class="editable"> <td class="editable hover">
`; `;
$('#table-body').empty(); $('#table-body').empty();
@ -434,8 +438,11 @@ function setupInterface(data, file, urls) {
if (nRow >= endIndex) return; if (nRow >= endIndex) return;
var row = $("<tr/>"); var row = $("<tr/>");
row.append($('<td> <button class="btn btn-link btn-xs py-0 offset" onmouseover="click();">' +
nRow + '</button> </td>')); row.append($('<td class="hover"/>').
text(nRow).
data('tableInfo', { 'nRow': nRow })
);
$.each(el, $.each(el,
function(column, content) { function(column, content) {
@ -465,9 +472,7 @@ function setupInterface(data, file, urls) {
colorCode(); colorCode();
$(".offset").on('click', gotoLocation); $(".hover").on('mouseover', gotoLocation);
//updatePreview(startIndex)
if ($("#docpos").val() != startIndex) { if ($("#docpos").val() != startIndex) {

Loading…
Cancel
Save