Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
If we have a dropdown in the UI, do an exact search
Browse files Browse the repository at this point in the history
Theoretically the previous behavior would not work if one value was a
substring of the other.  In practice it also would fail to find any
results for some odd combination of edge cases, for example "Dell
Inc."

should handle tumblr#78
  • Loading branch information
cburroughs committed Apr 10, 2013
1 parent 8dcef53 commit 06aeb90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/resources/optionDisplay.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@import _root_.models.lshw.Disk

@formatValue(value: String, display: String) = {
<option value="@value">@display</option>
<option value="^@value$">@display</option>
}
<select name="@assetMeta.name" id="@assetMeta.name" tabindex="@(index + 2)" @if(index == 0) {accesskey="r"}>
<option value="" selected="selected"></option>
Expand Down

0 comments on commit 06aeb90

Please sign in to comment.