vendor/ui/js/src/components/ref-selector.js in dolt-0.17.0 vs vendor/ui/js/src/components/ref-selector.js in dolt-0.18.0

- old
+ new

@@ -57,11 +57,11 @@ return e.a({ href: "#", className: "dropdown-toggle", innerHTML: "<span class=\"caret\"></span> <em>" + - type + ":</em> " + (currentRef && currentRef[0] || current) + type + ":</em> " + ((currentRef && currentRef[0]) || current) }); } function refInput(url) { var input = e.input({ type: "text", className: "gts-ref-input" }); @@ -80,12 +80,13 @@ events: { click: function (e) { e.stopPropagation(); } } }, [e.strong(["Enter ref: ", form])]); } function refItems(label, refs, urlTemplate) { - var initial = [e.li({ className: "dropdown-label" }, [e.strong(label)])]; + var initial = [e.li({className: "dropdown-label"}, [e.strong(label)])]; return cull.reduce(function (elements, ref) { - elements.push(e.li(e.a({ href: tpl(urlTemplate, ref[1]) }, ref[0]))); + var url = tpl(urlTemplate, ref[1]); + elements.push(e.li(e.a({ href: url }, ref[0]))); return elements; }, initial, refs.sort()); } function refsList(refs, urlTemplate) {