mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-12-02 21:13:26 +01:00
[bug] fix adding new group via editing link
This commit is contained in:
parent
0c62bf68c1
commit
07d74ce653
@ -223,7 +223,16 @@ var bookmarks = (function() {
|
|||||||
mod.edit = {
|
mod.edit = {
|
||||||
link: function(data) {
|
link: function(data) {
|
||||||
if (data.position.group.new) {
|
if (data.position.group.new) {
|
||||||
mod.add.group(data);
|
mod.add.group({
|
||||||
|
position: {
|
||||||
|
origin: null,
|
||||||
|
destination: data.position.destination.group
|
||||||
|
},
|
||||||
|
group: {
|
||||||
|
name: data.position.group.name,
|
||||||
|
items: []
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
var item = JSON.parse(JSON.stringify(data.link));
|
var item = JSON.parse(JSON.stringify(data.link));
|
||||||
mod.all[data.position.origin.group].items.splice(data.position.origin.item, 1);
|
mod.all[data.position.origin.group].items.splice(data.position.origin.item, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user