aotrautils-srv 0.0.215 → 0.0.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-03:52:13)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-04:19:44)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4828
4828
 
4829
4829
 
4830
4830
 
4831
- /*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-03:52:13)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-04:19:44)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
 
4834
4834
 
@@ -6224,7 +6224,9 @@ class ListManager{
6224
6224
 
6225
6225
  if(!this.isSessionActive()) return false;
6226
6226
  const clientPosition=this.getItemPosition(clientId);
6227
- const result=((clientPosition-1)/*Because client position starts at 1 !*/<=this.maxItemsNumber);
6227
+ //CAUTION : Client position starts at 1 !
6228
+ const result=((clientPosition-1)<=this.maxItemsNumber && (clientPosition-1)<=this.simultaneousItemsNumber);
6229
+
6228
6230
  return result;
6229
6231
  }
6230
6232
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.215",
3
+ "version": "0.0.218",
4
4
  "main": "aotrautils-srv.build.js",
5
5
  "description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",