Skip to content

Commit 89cd245

Browse files
committed
[bug] fix group name special character support when adding links
1 parent 5b1c0ee commit 89cd245

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎src/js/link.js‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,15 @@ var link = (function(){
819819
varmakeGroupOptions=function(){
820820
if(bookmarks.get().length>0){
821821
bookmarks.get().forEach(function(arrayItem,index){
822-
groupExistingGroup.appendChild(helper.node("option:"+arrayItem.name+"|value:"+arrayItem.name));
822+
varoption=helper.makeNode({
823+
tag: "option",
824+
text: arrayItem.name,
825+
attr: [{
826+
key: "value",
827+
value: arrayItem.name
828+
}]
829+
});
830+
groupExistingGroup.appendChild(option);
823831
});
824832
}else{
825833
groupNewRadio.checked=true;

0 commit comments

Comments
(0)