parent
b3c55928e3
commit
ec2e0fbb71
|
@ -288,6 +288,11 @@ var H5PDataView = (function ($) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
if (self.pagination === undefined) {
|
if (self.pagination === undefined) {
|
||||||
|
if (self.table === undefined) {
|
||||||
|
// No table, no pagination
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Create new widget
|
// Create new widget
|
||||||
var $pagerContainer = $('<div/>', {'class': 'h5p-pagination'});
|
var $pagerContainer = $('<div/>', {'class': 'h5p-pagination'});
|
||||||
self.pagination = new H5PUtils.Pagination(num, self.limit, function (offset) {
|
self.pagination = new H5PUtils.Pagination(num, self.limit, function (offset) {
|
||||||
|
|
Loading…
Reference in New Issue