mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-23 14:26:58 +00:00
Cleanup edit thing
This commit is contained in:
18
public/v1/js/ff/rules/create-edit.js
vendored
18
public/v1/js/ff/rules/create-edit.js
vendored
@@ -403,6 +403,15 @@ function createAutoComplete(input, URL) {
|
|||||||
url: URL + urlParamSplit + 'uid=' + uid,
|
url: URL + urlParamSplit + 'uid=' + uid,
|
||||||
filter: function (list) {
|
filter: function (list) {
|
||||||
return $.map(list, function (item) {
|
return $.map(list, function (item) {
|
||||||
|
if (item.hasOwnProperty('active') && item.active === true) {
|
||||||
|
return {name: item.name};
|
||||||
|
}
|
||||||
|
if (item.hasOwnProperty('active') && item.active === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (item.hasOwnProperty('active')) {
|
||||||
|
console.log(item.active);
|
||||||
|
}
|
||||||
return {name: item.name};
|
return {name: item.name};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -412,6 +421,15 @@ function createAutoComplete(input, URL) {
|
|||||||
wildcard: '%QUERY',
|
wildcard: '%QUERY',
|
||||||
filter: function (list) {
|
filter: function (list) {
|
||||||
return $.map(list, function (item) {
|
return $.map(list, function (item) {
|
||||||
|
if (item.hasOwnProperty('active') && item.active === true) {
|
||||||
|
return {name: item.name};
|
||||||
|
}
|
||||||
|
if (item.hasOwnProperty('active') && item.active === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (item.hasOwnProperty('active')) {
|
||||||
|
console.log(item.active);
|
||||||
|
}
|
||||||
return {name: item.name};
|
return {name: item.name};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user