diff --git a/neath.js b/neath.js
index c336f85..8bb0cf9 100644
--- a/neath.js
+++ b/neath.js
@@ -168,7 +168,11 @@ function setupInterface(data, file, urls) {
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)
}
@@ -422,7 +426,7 @@ function setupInterface(data, file, urls) {
let editable_html =
`
-
+ |
`;
$('#table-body').empty();
@@ -434,8 +438,11 @@ function setupInterface(data, file, urls) {
if (nRow >= endIndex) return;
var row = $(" |
");
- row.append($(' | '));
+
+ row.append($(' | ').
+ text(nRow).
+ data('tableInfo', { 'nRow': nRow })
+ );
$.each(el,
function(column, content) {
@@ -465,9 +472,7 @@ function setupInterface(data, file, urls) {
colorCode();
- $(".offset").on('click', gotoLocation);
-
- //updatePreview(startIndex)
+ $(".hover").on('mouseover', gotoLocation);
if ($("#docpos").val() != startIndex) {