mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-11 00:22:53 -06:00
Cleanup edit thing
This commit is contained in:
parent
9d057b853f
commit
2b78485a61
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};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user