projects
/
quanweb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds config file (quanlib.ini) support.
[quanweb.git]
/
js
/
SearchController.js
diff --git
a/js/SearchController.js
b/js/SearchController.js
index 5b770b59673661d11a4cb0e9cb872e8595622dbb..b95c951b3c09250fc0f0d2b23d0d9705385b13e8 100644
(file)
--- a/
js/SearchController.js
+++ b/
js/SearchController.js
@@
-22,8
+22,8
@@
var SearchController = (function () {
var url = constructSearchUrl();
fetch(url, {method:'GET', cache:'default'})
var url = constructSearchUrl();
fetch(url, {method:'GET', cache:'default'})
- .then(
response => response.json()
)
- .then(
(jsonValue) =>
{
+ .then(
function(response) {return response.json();}
)
+ .then(
function(jsonValue)
{
// console.log('JSON response: ', jsonValue);
booksModel.ids = jsonValue;
booksModel.count = booksModel.ids.length;
// console.log('JSON response: ', jsonValue);
booksModel.ids = jsonValue;
booksModel.count = booksModel.ids.length;
@@
-34,7
+34,7
@@
var SearchController = (function () {
PagingController.adjustPos(0);
})
PagingController.adjustPos(0);
})
- .catch(
err =>
{
+ .catch(
function(err)
{
var msg = 'Error fetching JSON from URL: ' + url + ': ' + err + ':' + err.stack;
console.log(msg);
report(msg);
var msg = 'Error fetching JSON from URL: ' + url + ': ' + err + ':' + err.stack;
console.log(msg);
report(msg);