Merge branch 'release' into improved-file-handling
commit
ba2f7c5e67
|
@ -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