forked from 0x2620/pandora
parent
f710d39567
commit
668368ea35
1 changed files with 6 additions and 0 deletions
|
@ -2000,15 +2000,21 @@ pandora.renameList = function(oldId, newId, newName, folder) {
|
||||||
// fixme: ugly
|
// fixme: ugly
|
||||||
// ... does this always coincide with triggerEvents = false, as below?
|
// ... does this always coincide with triggerEvents = false, as below?
|
||||||
pandora.replaceURL = true;
|
pandora.replaceURL = true;
|
||||||
|
pandora.UI.set('lists.' + pandora.UI.encode(newId), pandora.user.ui.lists[oldId], false);
|
||||||
pandora.UI.set({
|
pandora.UI.set({
|
||||||
find: {
|
find: {
|
||||||
conditions: [{key: 'list', value: newId, operator: '=='}],
|
conditions: [{key: 'list', value: newId, operator: '=='}],
|
||||||
operator: '&'
|
operator: '&'
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
pandora.UI.set('lists.' + pandora.UI.encode(oldId), null, false);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
pandora.replaceURL = true;
|
pandora.replaceURL = true;
|
||||||
|
pandora.UI.set(pandora.user.ui.section + '.' + pandora.UI.encode(newId),
|
||||||
|
pandora.user.ui[pandora.user.ui.section][oldId], false);
|
||||||
pandora.UI.set(pandora.user.ui.section.slice(0, -1), newId);
|
pandora.UI.set(pandora.user.ui.section.slice(0, -1), newId);
|
||||||
|
pandora.UI.set(pandora.user.ui.section + '.' + pandora.UI.encode(oldId), null, false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue