File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
js/src/main/scala/com/github/aborg0/oeis/ui Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -132,17 +132,18 @@ object Gui {
132
132
},
133
133
{
134
134
val values = onChange.map(_.target.asInstanceOf [HTMLSelectElement ].value)
135
- Seq (values --> formulaBox.bus.writer, values/* .collect{
135
+ Seq (values --> formulaBox.bus.writer, values.collect{
136
136
case v if v.startsWith(" A" ) && v.lengthIs == 7 => s " https://oeis.org/ $v"
137
- }*/ --> checkOnOeisHref.writer)
137
+ case _ => " "
138
+ } --> checkOnOeisHref.writer)
138
139
139
140
},
140
141
// Replace with empty selection on change from other sources on formulaBox
141
142
inContext(node => value <--
142
143
formulaBox.bus.events.collect{ case formula if formula != node.ref.value => node.ref.value }.mapToValue(" " )
143
144
)
144
145
),
145
- span(child <-- checkOnOeisHref.signal.map(hrefValue => if (hrefValue.isEmpty || hrefValue.lengthIs != 7 ) " " else
146
+ span(child <-- checkOnOeisHref.signal.map(hrefValue => if (hrefValue.isEmpty) " " else
146
147
a(href := hrefValue, target := " _blank" , " Check on OEIS" ))),
147
148
)
148
149
You can’t perform that action at this time.
0 commit comments