mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
PHRAS-3371 fix key navigation
This commit is contained in:
@@ -499,6 +499,7 @@ class QueryController extends Controller
|
|||||||
'records' => $record->get_train(),
|
'records' => $record->get_train(),
|
||||||
'index' => $index,
|
'index' => $index,
|
||||||
'selected' => $pos,
|
'selected' => $pos,
|
||||||
|
'recordsTotal' => $record->getTotal()
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@@ -552,6 +552,14 @@ class record_preview extends record_adapter
|
|||||||
return $this->statistics;
|
return $this->statistics;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getTotal()
|
||||||
|
{
|
||||||
|
return isset($this->total) ? $this->total : 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return media_adapter
|
* @return media_adapter
|
||||||
*/
|
*/
|
||||||
|
@@ -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>
|
<ul>
|
||||||
{% for record in records %}
|
{% for record in records %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user