Skip to content
Snippets Groups Projects
Commit ee2f6ae3 authored by clohr's avatar clohr
Browse files

snake_case

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/C/branches/version-0.7@2420 b32b6428-25c9-4566-ad07-03861ab6144f
parent 81230654
No related branches found
No related tags found
No related merge requests found
......@@ -20,20 +20,20 @@
<h1 id="title1">Information on device</h1>
<table id="device">
<tr><th>address</th><td id="address"></td></tr>
<tr><th>devType</th><td id="devType"></td></tr>
<tr><th>vendorId</th><td id="vendorId"></td></tr>
<tr><th>productId</th><td id="productId"></td></tr>
<tr><th>hwId</th><td id="hwId"></td></tr>
<tr><th>dev_type</th><td id="dev_type"></td></tr>
<tr><th>vendor_id</th><td id="vendor_id"></td></tr>
<tr><th>product_id</th><td id="product_id"></td></tr>
<tr><th>hw_id</th><td id="hw_id"></td></tr>
<tr><th>version</th><td id="version"></td></tr>
<tr><th>groupId</th><td id="groupId"></td></tr>
<tr><th>group_id</th><td id="group_id"></td></tr>
<tr><th>url</th><td id="url"></td></tr>
<tr><th>schema</th><td id="schema"></td></tr>
<tr><th>info</th><td id="info"></td></tr>
<tr><th>map</th><td id="map"></td></tr>
<tr><th>timeout</th><td id="timeout"></td></tr>
<tr><th>unsupportedAttributes</th><td id="unsupportedAttributes"></td></tr>
<tr><th>unsupportedMethods</th><td id="unsupportedMethods"></td></tr>
<tr><th>unsupportedNotifications</th><td id="unsupportedNotifications"></td></tr>
<tr><th>unsupported_attributes</th><td id="unsupported_attributes"></td></tr>
<tr><th>unsupported_methods</th><td id="unsupported_methods"></td></tr>
<tr><th>unsupported_notifications</th><td id="unsupported_notifications"></td></tr>
</table>
<h1 id="title2">Attributes</h1>
......
......@@ -17,7 +17,7 @@
</div>
<h1 id="title1">List of devices</h1>
<table id="devices">
<tr><th>Address</th><th>devType</th><th>Map</th><th>Timeout</th></tr>
<tr><th>Address</th><th>dev_type</th><th>Map</th><th>Timeout</th></tr>
</table>
<div id="footer" class="footer">
<p style="float:right;"><a href="dump.html">Dump &darr;</a></p>
......
......@@ -7,18 +7,18 @@ var socket;
function populate_device_table(device) {
if ('address' in device)
$('#address').html(device.address);
if ('devType' in device)
$('#devType').html('<a href="/schemas/'+device.devType+'">'+device.devType+'</a>');
if ('vendorId' in device)
$('#vendorId').html(device.vendorId);
if ('productId' in device)
$('#productId').html(device.productId);
if ('hwId' in device)
$('#hwId').append($('<pre/>').html(JSON.stringify(device.hwId)));
if ('dev_type' in device)
$('#dev_type').html('<a href="/schemas/'+device.dev_type+'">'+device.dev_type+'</a>');
if ('vendor_id' in device)
$('#vendor_id').html(device.vendor_id);
if ('product_id' in device)
$('#product_id').html(device.product_id);
if ('hw_id' in device)
$('#hw_id').append($('<pre/>').html(JSON.stringify(device.hw_id)));
if ('version' in device)
$('#version').html(device.version);
if ('groupId' in device)
$('#groupId').html('<a href="/device.html?groupId='+device.groupId+'">'+device.groupId+'</a>');
if ('group_id' in device)
$('#group_id').html('<a href="/device.html?group_id='+device.group_id+'">'+device.group_id+'</a>');
if ('url' in device)
$('#url').html('<a href="'+device.url+'">'+device.url+'</a>');
if ('schema' in device)
......@@ -27,12 +27,12 @@ function populate_device_table(device) {
$('#info').html(device.info);
if ('timeout' in device)
$('#timeout').html(device.timeout);
if ('unsupportedAttributes' in device)
$('#unsupportedAttributes').append($('<pre/>').html(JSON.stringify(device.unsupportedAttributes)));
if ('unsupportedMethods' in device)
$('#unsupportedMethods').append($('<pre/>').html(JSON.stringify(device.unsupportedMethods)));
if ('unsupportedNotifications' in device)
$('#unsupportedNotifications').append($('<pre/>').html(JSON.stringify(device.unsupportedNotifications)));
if ('unsupported_attributes' in device)
$('#unsupported_attributes').append($('<pre/>').html(JSON.stringify(device.unsupported_attributes)));
if ('unsupported_methods' in device)
$('#unsupported_methods').append($('<pre/>').html(JSON.stringify(device.unsupported_methods)));
if ('unsupported_notifications' in device)
$('#unsupported_notifications').append($('<pre/>').html(JSON.stringify(device.unsupported_notifications)));
$.ajax({
url: '/json/map?device='+device.address,
......@@ -118,7 +118,7 @@ function send(name) {
for (parameter in methods[name].in)
if ('editor' in methods[name].in[parameter]) {
if (!('body' in msg)) msg.body = {};
msg.body[parameter] = methods[name].in[parameter].editor.getValue();
msg.body[parameter] = methods[name].in[parameter].editor.get_value();
}
socket.send(JSON.stringify(msg));
......
......@@ -17,7 +17,7 @@ function populate_devices_table(devices) {
$('#devices').append($('<tr/>')
.append($('<td/>').html('<a href="/device.html?device='+device.address+'">'+device.address+'</a>'))
.append($('<td/>').html('<a href="/schemas/'+device.devType+'">'+device.devType+'</a>'))
.append($('<td/>').html('<a href="/schemas/'+device.dev_type+'">'+device.dev_type+'</a>'))
.append(td_map)
.append($('<td/>').html(device.timeout))
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment