Issue 2711 - select the first search tab on search
parent
992f793f76
commit
6c9c6475d6
|
@ -164,12 +164,15 @@ SearchDirective = ($log, $compile, $templatecache, $routeparams, $location) ->
|
||||||
selectedSectionName = null
|
selectedSectionName = null
|
||||||
selectedSectionData = null
|
selectedSectionData = null
|
||||||
|
|
||||||
for name, value of data
|
if data
|
||||||
continue if name == "count"
|
for name in ["userstories", "issues", "tasks", "wikipages"]
|
||||||
if value.length > maxVal
|
value = data[name]
|
||||||
maxVal = value.length
|
|
||||||
selectedSectionName = name
|
if value.length > maxVal
|
||||||
selectedSectionData = value
|
maxVal = value.length
|
||||||
|
selectedSectionName = name
|
||||||
|
selectedSectionData = value
|
||||||
|
break;
|
||||||
|
|
||||||
if maxVal == 0
|
if maxVal == 0
|
||||||
return {name: "userstories", value: []}
|
return {name: "userstories", value: []}
|
||||||
|
|
Loading…
Reference in New Issue