added global veriables and fixed variable images per page

This commit is contained in:
bluesaxman
2019-04-29 09:27:40 -06:00
parent a88b920606
commit d346e90e13
5 changed files with 5 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
function ImageListSelection(position,count) {
count = "number" == typeof count ? count : 5;
count = "number" == typeof count ? count : window.g_Gallery.pageCount;
var selection = window.curGallery.imageList.slice(position,position+count);
window.curGallery.container.list.innerHTML = "";
selection.forEach( function (e,i) {