Commit 91b2def7 authored by ibuler's avatar ibuler

[Update] 修改nodes过多时创建比较麻烦

parent b81c52ae
...@@ -127,7 +127,9 @@ $(document).ready(function () { ...@@ -127,7 +127,9 @@ $(document).ready(function () {
var results = $.map(data.results, function (v, i) { var results = $.map(data.results, function (v, i) {
return {id: v.id, text: v.full_value} return {id: v.id, text: v.full_value}
}); });
return {results: results, pagination: {"more": true}} var more = !!data.next;
console.log(more);
return {results: results, pagination: {"more": more }}
} }
}, },
}); });
......
...@@ -132,7 +132,8 @@ $(document).ready(function () { ...@@ -132,7 +132,8 @@ $(document).ready(function () {
var results = $.map(data.results, function (v, i) { var results = $.map(data.results, function (v, i) {
return {id: v.id, text: v.full_value} return {id: v.id, text: v.full_value}
}); });
return {results: results, pagination: {"more": true}} var more = !!data.next;
return {results: results, pagination: {"more": more }}
} }
}, },
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment