[bug] fix group name special character support when adding links

This commit is contained in:
zombieFox 2019-12-02 10:53:41 +00:00
parent 5b1c0ee979
commit 89cd24568e

View File

@ -819,7 +819,15 @@ var link = (function() {
var makeGroupOptions = function() { var makeGroupOptions = function() {
if (bookmarks.get().length > 0) { if (bookmarks.get().length > 0) {
bookmarks.get().forEach(function(arrayItem, index) { bookmarks.get().forEach(function(arrayItem, index) {
groupExistingGroup.appendChild(helper.node("option:" + arrayItem.name + "|value:" + arrayItem.name)); var option = helper.makeNode({
tag: "option",
text: arrayItem.name,
attr: [{
key: "value",
value: arrayItem.name
}]
});
groupExistingGroup.appendChild(option);
}); });
} else { } else {
groupNewRadio.checked = true; groupNewRadio.checked = true;