Merge branch 'release' of github.com:h5p/h5p-php-library into improved-file-handling

pull/22/head
Frode Petterson 2016-05-24 11:27:28 +02:00
commit bba5190876
1 changed files with 3 additions and 7 deletions

View File

@ -108,10 +108,10 @@ var H5PDataView = (function ($) {
else { else {
// Update table data // Update table data
self.updateTable(data.rows); self.updateTable(data.rows);
}
// Update pagination widget // Update pagination widget
self.updatePagination(data.num); self.updatePagination(data.num);
}
if (self.loaded !== undefined) { if (self.loaded !== undefined) {
self.loaded(); self.loaded();
@ -255,7 +255,6 @@ var H5PDataView = (function ($) {
var remove = function () { var remove = function () {
self.facets[col].$tag.remove(); self.facets[col].$tag.remove();
delete self.facets[col]; delete self.facets[col];
self.offset = 0; // Reset to page 1
self.loadData(); self.loadData();
}; };
@ -276,9 +275,6 @@ var H5PDataView = (function ($) {
} }
}); });
// Reset to page 1
self.offset = 0;
// Load data with new filter // Load data with new filter
self.loadData(); self.loadData();
}; };