Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6376e04e
authored
Nov 17, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: don't lowercase search results
Closes #362
parent
3b9fb9b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
circle/dashboard/static/dashboard/dashboard.js
+6
-6
No files found.
circle/dashboard/static/dashboard/dashboard.js
View file @
6376e04e
...
@@ -245,7 +245,7 @@ $(function () {
...
@@ -245,7 +245,7 @@ $(function () {
for
(
var
i
in
result
)
{
for
(
var
i
in
result
)
{
my_vms
.
push
({
my_vms
.
push
({
'pk'
:
result
[
i
].
pk
,
'pk'
:
result
[
i
].
pk
,
'name'
:
result
[
i
].
name
.
toLowerCase
()
,
'name'
:
result
[
i
].
name
,
'state'
:
result
[
i
].
state
,
'state'
:
result
[
i
].
state
,
'fav'
:
result
[
i
].
fav
,
'fav'
:
result
[
i
].
fav
,
'host'
:
result
[
i
].
host
,
'host'
:
result
[
i
].
host
,
...
@@ -262,7 +262,7 @@ $(function () {
...
@@ -262,7 +262,7 @@ $(function () {
var
search_result
=
[]
var
search_result
=
[]
var
html
=
''
;
var
html
=
''
;
for
(
var
i
in
my_vms
)
{
for
(
var
i
in
my_vms
)
{
if
(
my_vms
[
i
].
name
.
indexOf
(
input
)
!=
-
1
||
my_vms
[
i
].
host
.
indexOf
(
input
)
!=
-
1
)
{
if
(
my_vms
[
i
].
name
.
toLowerCase
().
indexOf
(
input
)
!=
-
1
||
my_vms
[
i
].
host
.
indexOf
(
input
)
!=
-
1
)
{
search_result
.
push
(
my_vms
[
i
]);
search_result
.
push
(
my_vms
[
i
]);
}
}
}
}
...
@@ -296,7 +296,7 @@ $(function () {
...
@@ -296,7 +296,7 @@ $(function () {
$
.
get
(
"/dashboard/node/list/"
,
function
(
result
)
{
$
.
get
(
"/dashboard/node/list/"
,
function
(
result
)
{
for
(
var
i
in
result
)
{
for
(
var
i
in
result
)
{
my_nodes
.
push
({
my_nodes
.
push
({
'name'
:
result
[
i
].
name
.
toLowerCase
()
,
'name'
:
result
[
i
].
name
,
'icon'
:
result
[
i
].
icon
,
'icon'
:
result
[
i
].
icon
,
'status'
:
result
[
i
].
status
,
'status'
:
result
[
i
].
status
,
'label'
:
result
[
i
].
label
,
'label'
:
result
[
i
].
label
,
...
@@ -311,7 +311,7 @@ $(function () {
...
@@ -311,7 +311,7 @@ $(function () {
var
search_result
=
[]
var
search_result
=
[]
var
html
=
''
;
var
html
=
''
;
for
(
var
i
in
my_nodes
)
{
for
(
var
i
in
my_nodes
)
{
if
(
my_nodes
[
i
].
name
.
indexOf
(
input
)
!=
-
1
)
{
if
(
my_nodes
[
i
].
name
.
toLowerCase
().
indexOf
(
input
)
!=
-
1
)
{
search_result
.
push
(
my_nodes
[
i
]);
search_result
.
push
(
my_nodes
[
i
]);
}
}
}
}
...
@@ -353,7 +353,7 @@ $(function () {
...
@@ -353,7 +353,7 @@ $(function () {
for
(
var
i
in
result
)
{
for
(
var
i
in
result
)
{
my_groups
.
push
({
my_groups
.
push
({
'url'
:
result
[
i
].
url
,
'url'
:
result
[
i
].
url
,
'name'
:
result
[
i
].
name
.
toLowerCase
()
,
'name'
:
result
[
i
].
name
,
});
});
}
}
});
});
...
@@ -364,7 +364,7 @@ $(function () {
...
@@ -364,7 +364,7 @@ $(function () {
var
search_result
=
[]
var
search_result
=
[]
var
html
=
''
;
var
html
=
''
;
for
(
var
i
in
my_groups
)
{
for
(
var
i
in
my_groups
)
{
if
(
my_groups
[
i
].
name
.
indexOf
(
input
)
!=
-
1
)
{
if
(
my_groups
[
i
].
name
.
toLowerCase
().
indexOf
(
input
)
!=
-
1
)
{
search_result
.
push
(
my_groups
[
i
]);
search_result
.
push
(
my_groups
[
i
]);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment