mirror of
https://github.com/qurator-spk/neat.git
synced 2025-06-11 20:59:54 +02:00
implement issue #32
This commit is contained in:
parent
98e48dec38
commit
57b6b7d6d3
1 changed files with 12 additions and 7 deletions
19
neath.js
19
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 =
|
||||
`
|
||||
<td class="editable">
|
||||
<td class="editable hover">
|
||||
`;
|
||||
|
||||
$('#table-body').empty();
|
||||
|
@ -434,8 +438,11 @@ function setupInterface(data, file, urls) {
|
|||
if (nRow >= endIndex) return;
|
||||
|
||||
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,
|
||||
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) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue