mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-11-30 12:04:48 +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 = {
|
||||
link: function(data) {
|
||||
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));
|
||||
mod.all[data.position.origin.group].items.splice(data.position.origin.item, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user