sr-npm 1.7.883 → 1.7.884

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/pages/homePage.js +16 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.883",
3
+ "version": "1.7.884",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/pages/homePage.js CHANGED
@@ -86,25 +86,25 @@ function bindTeamRepeater(_$w) {
86
86
  }
87
87
 
88
88
  function bindViewAllButton(_$w) {
89
- if(!loadedCategories) {
90
- loadedCategories=true;
91
- _$w('#viewAllCategoriesButton').label = "View All";
89
+
92
90
  _$w('#viewAllCategoriesButton').onClick(()=>{
93
- console.log("loading more categories");
94
- _$w("#categoriesDataset").loadMore();
95
- console.log("categories loaded");
96
- });
97
- }
98
- else
99
- {
100
- loadedCategories=false;
101
- _$w('#viewAllCategoriesButton').label = "View Less";
102
- _$w('#viewAllCategoriesButton').onClick(()=>{
103
- _$w("#categoriesDataset").loadPage(1);
104
- console.log("categories reseted");
91
+ if(!loadedCategories) {
92
+ loadedCategories=true;
93
+ _$w('#viewAllCategoriesButton').label = "View All";
94
+ _$w("#categoriesDataset").loadMore();
95
+ console.log("categories loaded");
96
+ }
97
+ else{
98
+ loadedCategories=false;
99
+ _$w('#viewAllCategoriesButton').label = "View Less";
100
+ _$w("#categoriesDataset").loadPage(1);
101
+ console.log("categories reseted");
102
+ }
105
103
  });
106
104
  }
107
- }
105
+
106
+
107
+
108
108
 
109
109
  function init(_$w) {
110
110
  const debouncedInput = debounce(()=>handleSearchInput(_$w), 400,thisObjectVar);