forked from 0x2620/pandora
when duplicating a list, copy its description (fixes #749)
This commit is contained in:
parent
545a5527a9
commit
a30ddb7c32
1 changed files with 27 additions and 17 deletions
|
@ -34,7 +34,13 @@ pandora.addList = function() {
|
||||||
data.query = listData.query;
|
data.query = listData.query;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isDuplicate && listData.type == 'static') {
|
if (isDuplicate) {
|
||||||
|
pandora.api.findLists({
|
||||||
|
query: {conditions: [{key: 'id', value: list, operator: '=='}]},
|
||||||
|
keys: ['description']
|
||||||
|
}, function(result) {
|
||||||
|
data.description = result.data.items[0].description;
|
||||||
|
if (data.type == 'static') {
|
||||||
var query = {
|
var query = {
|
||||||
conditions: [{key: 'list', value: list, operator: '=='}],
|
conditions: [{key: 'list', value: list, operator: '=='}],
|
||||||
operator: '&'
|
operator: '&'
|
||||||
|
@ -58,6 +64,10 @@ pandora.addList = function() {
|
||||||
addList();
|
addList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
addList()
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
addList();
|
addList();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue