Revision 1d4fecef ui/templates/list.html

b/ui/templates/list.html
13 13
            <a id="action-details">{% trans "Show Details" %}</a>
14 14
            <a id="action-group">{% trans "Add to group" %}</a>
15 15
            <br />
16
            <a id="action-band">{% trans "Out of band" %}</a>
16
            <a id="action-console">{% trans "Console" %}</a>
17 17
            <br />
18 18
            <a id="action-attach">{% trans "Attach disk" %}</a>
19 19
            <a id="action-detach">{% trans "Detach disk" %}</a>
......
94 94
				'shutdown':		['ACTIVE', 'REBOOT', 'multiple'],
95 95
				'connect':		['ACTIVE', ],
96 96
				'disconnect':	['ACTIVE', 'network'],
97
				'band':			['ACTIVE', 'REBOOT'],
97
				'console':		['ACTIVE', 'multiple'],
98 98
				'details':		['ACTIVE', 'REBOOT', 'STOPPED'],
99 99
				'start': 		['STOPPED', 'multiple'],
100 100
				'destroy':		['ACTIVE', 'STOPPED', 'REBOOT', 'ERROR', 'multiple', 'BUILD'],
......
170 170
	return false;
171 171
});
172 172

  
173

  
173
$("a.enabled#action-console").live('click', function() {
174
	var checked = $("table.list-machines tbody input[type='checkbox']:checked");
175
    $(".selected").removeClass('selected');
176
    $(this).addClass('selected');
177
	pending_actions = []; // reset pending actions
178
	checked.each(function(i,c) {
179
		serverID=c.id;
180
		serverName = $('#'+serverID+' span.name').text();
181
		pending_actions.push([console, serverID]);
182
	});
183
	update_confirmations();
184
	return false;
185
});
174 186

  
175 187
function update_machines_view(data){
176 188
    /* 

Also available in: Unified diff