Refactored the bulk edit controller.

This commit is contained in:
James Cole
2019-07-04 17:31:47 +02:00
parent 54623061d8
commit 3c5c14ff5a
16 changed files with 432 additions and 170 deletions

View File

@@ -29,8 +29,8 @@ function initTagsAC() {
prefetch: {
url: 'json/tags?uid=' + uid,
filter: function (list) {
return $.map(list, function (tagTag) {
return {name: tagTag};
return $.map(list, function (item) {
return {name: item.name};
});
}
},
@@ -38,8 +38,8 @@ function initTagsAC() {
url: 'json/tags?search=%QUERY&uid=' + uid,
wildcard: '%QUERY',
filter: function (list) {
return $.map(list, function (name) {
return {name: name};
return $.map(list, function (item) {
return {name: item.name};
});
}
}
@@ -145,8 +145,8 @@ function initCategoryAC() {
prefetch: {
url: 'json/categories?uid=' + uid,
filter: function (list) {
return $.map(list, function (name) {
return {name: name};
return $.map(list, function (object) {
return {name: object.name};
});
}
},
@@ -154,8 +154,8 @@ function initCategoryAC() {
url: 'json/categories?search=%QUERY&uid=' + uid,
wildcard: '%QUERY',
filter: function (list) {
return $.map(list, function (name) {
return {name: name};
return $.map(list, function (object) {
return {name: object.name};
});
}
}