Prevent JS error when no pager is available
parent
0dddbf654e
commit
f112f761c3
|
@ -188,6 +188,10 @@ var H5PLibraryDetails= H5PLibraryDetails || {};
|
|||
* Update the pager text, and enables/disables the next and previous buttons as needed
|
||||
*/
|
||||
H5PLibraryDetails.updatePager = function () {
|
||||
if (!H5PLibraryDetails.$pagerInfo) {
|
||||
return; // No pager available
|
||||
}
|
||||
|
||||
H5PLibraryDetails.$pagerInfo.css({display: 'inline-block'});
|
||||
|
||||
if(H5PLibraryDetails.getNumPages() > 0) {
|
||||
|
|
Loading…
Reference in New Issue