@itutoring/itutoring_application_js_api 1.6.10 → 1.6.12
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/modules/TableExplorer.js +7 -2
- package/package.json +1 -1
package/modules/TableExplorer.js
CHANGED
|
@@ -165,11 +165,10 @@ class TableExplorer
|
|
|
165
165
|
return data;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
static async getFilteredResults(token
|
|
168
|
+
static async getFilteredResults(token)
|
|
169
169
|
{
|
|
170
170
|
var data = await APIController.Get(this.#MODULE, this.#GET_FILTERED_RESULTS, {
|
|
171
171
|
'token': token,
|
|
172
|
-
'filters': JSON.stringify(filters),
|
|
173
172
|
});
|
|
174
173
|
|
|
175
174
|
return data;
|
|
@@ -177,6 +176,12 @@ class TableExplorer
|
|
|
177
176
|
|
|
178
177
|
static async search(token, searchPhrase, base64encoded = true)
|
|
179
178
|
{
|
|
179
|
+
searchPhrase = encodeURI(searchPhrase);
|
|
180
|
+
if (base64encoded)
|
|
181
|
+
{
|
|
182
|
+
searchPhrase = btoa(searchPhrase);
|
|
183
|
+
}
|
|
184
|
+
|
|
180
185
|
var data = await APIController.Get(this.#MODULE, this.#SEARCH, {
|
|
181
186
|
'token': token,
|
|
182
187
|
'searchPhrase': searchPhrase,
|