standardize variable names
This commit is contained in:
		| @@ -19,7 +19,7 @@ $(document).ready(function() { | ||||
|       }, { | ||||
|         "data": 'ch_count', | ||||
|         "searchable": false, | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|         } | ||||
|       } | ||||
|   | ||||
| @@ -34,7 +34,7 @@ $(document).ready(function() { | ||||
|         "data": 'duplex', | ||||
|         "searchable": false, | ||||
|         "orderable": false, | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return he.encode(capitalizeFirstLetter(data)); | ||||
|         } | ||||
|       } | ||||
|   | ||||
| @@ -70,12 +70,12 @@ $(document).ready(function() { | ||||
|     "columns": [     | ||||
|       { | ||||
|         "data": 'domain', | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return '<a href="[% uri_for('/report/netbios') %]?domain=' + encodeURIComponent(data || 'blank') + '">' + he.encode(data || '(Blank Domain)') + '</a>'; | ||||
|         } | ||||
|       }, { | ||||
|         "data": 'count', | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|         } | ||||
|       } | ||||
|   | ||||
| @@ -34,7 +34,7 @@ $(document).ready(function() { | ||||
|       }, { | ||||
|         "data": 'mac_count', | ||||
|         "searchable": false, | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|         } | ||||
|       } | ||||
|   | ||||
| @@ -37,7 +37,7 @@ $(document).ready(function() { | ||||
|         } | ||||
|       }, { | ||||
|         "data": 'broadcast', | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return (data ? 'Yes' : 'No'); | ||||
|         } | ||||
|       }, { | ||||
| @@ -63,18 +63,18 @@ $(document).ready(function() { | ||||
|     "columns": [ | ||||
|       { | ||||
|         "data": 'ssid', | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return '<a href="[% uri_for('/report/portssid') %]?ssid=' + encodeURIComponent(data) + '">' + he.encode(data) + '</a>'; | ||||
|         } | ||||
|       }, { | ||||
|         "data": 'broadcast', | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return (data ? 'Yes' : 'No'); | ||||
|         } | ||||
|       }, { | ||||
|         "data": 'count', | ||||
|         "searchable": false, | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|         } | ||||
|       }, | ||||
|   | ||||
| @@ -24,25 +24,25 @@ $(document).ready(function() { | ||||
|             }, { | ||||
|                 "data": 'port_count', | ||||
|                 "searchable": false, | ||||
|                 "render": function(data, type, full, meta) { | ||||
|                 "render": function(data, type, row, meta) { | ||||
|                     return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|                 } | ||||
|             }, { | ||||
|                 "data": 'ports_in_use', | ||||
|                 "searchable": false, | ||||
|                 "render": function(data, type, full, meta) { | ||||
|                 "render": function(data, type, row, meta) { | ||||
|                     return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|                 } | ||||
|             }, { | ||||
|                 "data": 'ports_shutdown', | ||||
|                 "searchable": false, | ||||
|                 "render": function(data, type, full, meta) { | ||||
|                 "render": function(data, type, row, meta) { | ||||
|                     return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|                 } | ||||
|             }, { | ||||
|                 "data": 'ports_free', | ||||
|                 "searchable": false, | ||||
|                 "render": function(data, type, full, meta) { | ||||
|                 "render": function(data, type, row, meta) { | ||||
|                     return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|                 } | ||||
|             } | ||||
|   | ||||
| @@ -28,13 +28,13 @@ $(document).ready(function() { | ||||
|       }, { | ||||
|         "data": 'dcount', | ||||
|         "searchable": false, | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|         } | ||||
|       }, { | ||||
|         "data": 'pcount', | ||||
|         "searchable": false, | ||||
|         "render": function(data, type, full, meta) { | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return data.replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|         } | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user