sr-npm 1.7.882 → 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.
- package/package.json +1 -1
- package/pages/homePage.js +16 -16
package/package.json
CHANGED
package/pages/homePage.js
CHANGED
|
@@ -86,25 +86,25 @@ function bindTeamRepeater(_$w) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
function bindViewAllButton(_$w) {
|
|
89
|
-
|
|
90
|
-
loadedCategories=true;
|
|
91
|
-
_$w('#viewAllCategoriesButton').label = "View All";
|
|
89
|
+
|
|
92
90
|
_$w('#viewAllCategoriesButton').onClick(()=>{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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);
|