[bug] fix link postion select when adding via empty group

This commit is contained in:
zombieFox 2019-11-21 18:29:58 +00:00
parent 87f51ae9c2
commit 8a5633f60e

View File

@ -1375,7 +1375,13 @@ var link = (function() {
},
selectGroup: function(groupIndex) {
stagedLink.position.destination.group = groupIndex;
stagedLink.position.destination.item = 0;
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: {