mirror of
https://forge.murkfall.net/bluesaxman/imapi.git
synced 2026-03-13 02:54:19 -06:00
added ability to display a variable number of images per page
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
function ImageListSelection(position) {
|
||||
var selection = window.curGallery.imageList.slice(position,position+5);
|
||||
function ImageListSelection(position,count) {
|
||||
count = "number" == typeof count ? count : 5;
|
||||
var selection = window.curGallery.imageList.slice(position,position+count);
|
||||
window.curGallery.container.list.innerHTML = "";
|
||||
selection.forEach( function (e,i) {
|
||||
var element = elementPlace("#ImageList",e,"thumbnail","li");
|
||||
|
||||
Reference in New Issue
Block a user