Commit 0729a05c by Kálmán Viktor

network: fix jshint warnings

parent 154d7a4f
$(function() { $(function() {
if($("#network-host-list-table").length) { 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 = { var options = {
paging: false, paging: false,
columnDefs: [ columnDefs: [
...@@ -10,7 +10,7 @@ $(function() { ...@@ -10,7 +10,7 @@ $(function() {
language: { language: {
zeroRecords: gettext("No host found.") zeroRecords: gettext("No host found.")
} }
} };
table = createDataTable($("#network-host-list-table"), options, "sort", order); table = createDataTable($("#network-host-list-table"), options, "sort", order);
$("#network-host-list-input").keyup(function() { $("#network-host-list-input").keyup(function() {
...@@ -31,7 +31,7 @@ function createDataTable(table_element, options, sort_parameter_name, sort_order ...@@ -31,7 +31,7 @@ function createDataTable(table_element, options, sort_parameter_name, sort_order
var dir = "asc"; var dir = "asc";
var index = 0; var index = 0;
if(sort.length > 0 && sort[0] == "-") { if(sort.length > 0 && sort[0] == "-") {
dir = "desc" dir = "desc";
sort = sort.substr(1, sort.length - 1); sort = sort.substr(1, sort.length - 1);
} }
if(sort) 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