Revision c3b3043d ui/templates/list.html

b/ui/templates/list.html
1
<script src="http://tablesorter.com/jquery.tablesorter.min.js"></script>
2

  
3 1
<div id="machinesview" class="list">
4 2
    <div id="spinner"></div>
5 3
    <div class="actions">
......
29 27
                <th id="ip">IP</th> 
30 28
                <th id="group">Group</th>
31 29
                <th id="status">Status</th> 
30
                <th class="scroll"></th>
32 31
            </tr> 
33 32
        </thead> 
34 33
        <tbody class="running">
35 34
            <tr id="machine-template" style="display: none">
36 35
                <td><input type="checkbox" class="machine" id="node-id" /></td>
37
                <td><img class="list-logo" src="static/os_logos/node.thumb" width="16" height="16" /></td>
36
                <td><span class="imagetag"></span><img class="list-logo" src="" width="16" height="16" /></td>
38 37
                <td><a class="name"><span class="name">node.name</span></a></td> 
39 38
                <td><a class="ip"><span class="public">node.public_ip</span></a></td>
40 39
                <td>group</td>
......
57 56
        <tbody class="terminated"></tbody>
58 57
    </table>
59 58
</div>
59

  
60

  
61
<script>
62
$(function() {
63
	$(".destroy").click(function() {
64
    	$.ajax({
65
     	   url: '/api/v1.0/servers/1234',
66
			//SERVER ID HERE
67
        	type: "DELETE",
68
        	dataType: "json",
69
        	success: function(data) {}
70
        });
71
}
72
</script>

Also available in: Unified diff