PHRAS-3371 fix key navigation

This commit is contained in:
aynsix
2021-02-23 10:26:19 +03:00
parent a2bcb6fe98
commit 4fbfc4f54f
3 changed files with 10 additions and 1 deletions

View File

@@ -499,6 +499,7 @@ class QueryController extends Controller
'records' => $record->get_train(),
'index' => $index,
'selected' => $pos,
'recordsTotal' => $record->getTotal()
])
]);
}

View File

@@ -552,6 +552,14 @@ class record_preview extends record_adapter
return $this->statistics;
}
/**
* @return int
*/
public function getTotal()
{
return isset($this->total) ? $this->total : 0;
}
/**
* @return media_adapter
*/

View File

@@ -1,4 +1,4 @@
<div id="PREVIEWCURRENTCONT" class="PNB10" data-records-count="{{ records|length + index}}">
<div id="PREVIEWCURRENTCONT" class="PNB10" data-records-count="{{ recordsTotal }}">
<ul>
{% for record in records %}