mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-01-04 13:09:17 +01:00
[bug] fix link postion select when adding via empty group
This commit is contained in:
parent
87f51ae9c2
commit
8a5633f60e
@ -1375,7 +1375,13 @@ var link = (function() {
|
|||||||
},
|
},
|
||||||
selectGroup: function(groupIndex) {
|
selectGroup: function(groupIndex) {
|
||||||
stagedLink.position.destination.group = groupIndex;
|
stagedLink.position.destination.group = groupIndex;
|
||||||
|
stagedLink.position.destination.item = 0;
|
||||||
helper.e(".link-form-select-group").selectedIndex = stagedLink.position.destination.group;
|
helper.e(".link-form-select-group").selectedIndex = stagedLink.position.destination.group;
|
||||||
|
var linkFormPosition = helper.e(".link-form-position");
|
||||||
|
while (linkFormPosition.lastChild) {
|
||||||
|
linkFormPosition.removeChild(linkFormPosition.lastChild);
|
||||||
|
};
|
||||||
|
linkFormPosition.appendChild(helper.node("option:" + helper.ordinalNumber(1)));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
group: {
|
group: {
|
||||||
|
Loading…
Reference in New Issue
Block a user