Commit 0729a05c by Kálmán Viktor

network: fix jshint warnings

parent 154d7a4f
$(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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment