Always send to slack comparasion report with master + fix for higligted field

This commit is contained in:
Elena Lepilkina
2019-04-08 17:36:28 +03:00
parent 54881b421c
commit 4b8001404c
2 changed files with 4 additions and 9 deletions
@@ -277,12 +277,13 @@ fun main(args: Array<String>) {
autocompleteParameters["onSelect"] = { suggestion ->
if (suggestion.value != parameters["build"]) {
val newLink = "http://${window.location.host}/?target=${parameters["target"]}&type=${parameters["type"]}" +
"${if (suggestion.value.isEmpty()) "" else "&build=${suggestion.value}"}"
"${if ((suggestion.value as String).isEmpty()) "" else "&build=${suggestion.value}"}"
window.location.href = newLink
}
}
js("$( \"#highligted_build\" )").autocomplete(autocompleteParameters)
js("$('#highligted_build')").change({
js("$('#highligted_build')").change({ value ->
println(value)
val newValue = js("$(this).val()").toString()
if (newValue.isEmpty() || newValue in builds.map {it.buildNumber}) {
val newLink = "http://${window.location.host}/?target=${parameters["target"]}&type=${parameters["type"]}" +