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
0729a05c
authored
Jan 21, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: fix jshint warnings
parent
154d7a4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
circle/network/static/js/host-list.js
+3
-3
No files found.
circle/network/static/js/host-list.js
View file @
0729a05c
$
(
function
()
{
if
(
$
(
"#network-host-list-table"
).
length
)
{
var
order
=
[
"hostname"
,
"vlan"
,
"mac"
,
"ipv4"
,
"ipv6"
,
"external_ipv4"
,
"created_at"
,
"owner"
]
var
order
=
[
"hostname"
,
"vlan"
,
"mac"
,
"ipv4"
,
"ipv6"
,
"external_ipv4"
,
"created_at"
,
"owner"
]
;
var
options
=
{
paging
:
false
,
columnDefs
:
[
...
...
@@ -10,7 +10,7 @@ $(function() {
language
:
{
zeroRecords
:
gettext
(
"No host found."
)
}
}
}
;
table
=
createDataTable
(
$
(
"#network-host-list-table"
),
options
,
"sort"
,
order
);
$
(
"#network-host-list-input"
).
keyup
(
function
()
{
...
...
@@ -31,7 +31,7 @@ function createDataTable(table_element, options, sort_parameter_name, sort_order
var
dir
=
"asc"
;
var
index
=
0
;
if
(
sort
.
length
>
0
&&
sort
[
0
]
==
"-"
)
{
dir
=
"desc"
dir
=
"desc"
;
sort
=
sort
.
substr
(
1
,
sort
.
length
-
1
);
}
if
(
sort
)
...
...
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