mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-04 23:22:24 +00:00
output js for loading additional table rows only if maxItemsPerPage > 0
This commit is contained in:
parent
89aae7ed55
commit
9726e1c7fe
|
@ -89,6 +89,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
$orderby = $this->params['orderby'];
|
||||
$expandFolderTree = $this->params['expandFolderTree'];
|
||||
$enableDropUpload = $this->params['enableDropUpload'];
|
||||
$maxItemsPerPage = $this->params['maxItemsPerPage'];
|
||||
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder'));
|
||||
|
@ -96,6 +97,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
function folderSelected(id, name) {
|
||||
window.location = '../out/out.ViewFolder.php?folderid=' + id;
|
||||
}
|
||||
<?php if($maxItemsPerPage) { ?>
|
||||
function loadMoreObjects(element, limit) {
|
||||
if(!$(element).is(":visible"))
|
||||
return;
|
||||
|
@ -130,6 +132,7 @@ $(window).scroll(function() {
|
|||
$('#loadmore').click(function(e) {
|
||||
loadMoreObjects($(this), $(this).data('all'));
|
||||
});
|
||||
<?php } ?>
|
||||
<?php
|
||||
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 0, '', $expandFolderTree == 2, $orderby);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user