error strings, sort api in docs
This commit is contained in:
parent
31cf62c752
commit
ae96cf86c7
2 changed files with 13 additions and 12 deletions
|
|
@ -60,16 +60,16 @@ function constructList() {
|
|||
id: 'actionList',
|
||||
request: function(data, callback) {
|
||||
if(!data.keys) {
|
||||
app.api.apidoc(function(results) {
|
||||
app.api.api(function(results) {
|
||||
var items = [];
|
||||
$.each(results.data.actions, function(k) {items.push({'name': k})});
|
||||
$.each(results.data.actions, function(i, k) {items.push({'name': k})});
|
||||
var result = {'data': {'items': items.length}};
|
||||
callback(result);
|
||||
});
|
||||
} else {
|
||||
app.api.apidoc(function(results) {
|
||||
app.api.api(function(results) {
|
||||
var items = [];
|
||||
$.each(results.data.actions, function(k) {items.push({'name': k})});
|
||||
$.each(results.data.actions, function(i, k) {items.push({'name': k})});
|
||||
var result = {'data': {'items': items}};
|
||||
callback(result);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue