mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-06-27 13:01:41 +02:00
[bug] fix new group and group name via new bookmark modal
This commit is contained in:
parent
d570bdd522
commit
319def5c8a
@ -192,7 +192,16 @@ var bookmarks = (function() {
|
|||||||
mod.add = {
|
mod.add = {
|
||||||
link: function(data) {
|
link: function(data) {
|
||||||
if (data.position.group.new) {
|
if (data.position.group.new) {
|
||||||
mod.add.group();
|
mod.add.group({
|
||||||
|
position: {
|
||||||
|
origin: null,
|
||||||
|
destination: data.position.destination.group
|
||||||
|
},
|
||||||
|
group: {
|
||||||
|
name: data.position.group.name,
|
||||||
|
items: []
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
mod.all[data.position.destination.group].items.splice(data.position.destination.item, 0, data.link);
|
mod.all[data.position.destination.group].items.splice(data.position.destination.item, 0, data.link);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user