@itutoring/itutoring_application_js_api 1.6.34 → 1.6.36
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/apiController.js +2 -2
- package/modules/TableExplorer.js +10 -0
- package/package.json +1 -1
package/apiController.js
CHANGED
|
@@ -178,7 +178,7 @@ class APIController
|
|
|
178
178
|
{
|
|
179
179
|
APICache.Cache(module + method + cacheSuffix, response);
|
|
180
180
|
}
|
|
181
|
-
if (response['conf_request'] !== undefined)
|
|
181
|
+
if (response != null && response['conf_request'] !== undefined)
|
|
182
182
|
APIController.LastCall = {
|
|
183
183
|
"type": "GET",
|
|
184
184
|
"module": module,
|
|
@@ -245,7 +245,7 @@ class APIController
|
|
|
245
245
|
APICache.Cache(module + method, response);
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
if (response['conf_request'] !== undefined)
|
|
248
|
+
if (response != null && response['conf_request'] !== undefined)
|
|
249
249
|
APIController.LastCall = {
|
|
250
250
|
"type": "POST",
|
|
251
251
|
"module": module,
|
package/modules/TableExplorer.js
CHANGED
|
@@ -35,6 +35,16 @@ class TableExplorer
|
|
|
35
35
|
static #RESET_FILTER = "ResetFilter";
|
|
36
36
|
static #SET_SPECIAL_FILTER = "SetSpecialFilter";
|
|
37
37
|
static #REMOVE_FILTER = "RemoveFilter";
|
|
38
|
+
static #GET_NUMBER_OF_ENTRIES = "GetNumberOfEntries";
|
|
39
|
+
|
|
40
|
+
static async getNumberOfEntries(token)
|
|
41
|
+
{
|
|
42
|
+
var data = await APIController.Get(this.#MODULE, this.#GET_NUMBER_OF_ENTRIES, {
|
|
43
|
+
'token': token,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
38
48
|
|
|
39
49
|
static async removeFilter(token, filter)
|
|
40
50
|
{
|