Revision 78167f3e
b/ui/templates/machines_icon.html | ||
---|---|---|
224 | 224 |
}); |
225 | 225 |
|
226 | 226 |
// open console on machine logo click |
227 |
$("#machinesview-icon.standard .running img.logo").live('click', function(){ |
|
228 |
$(this).parent().parent().find("a.action-console").click(); |
|
229 |
return false; |
|
230 |
}); |
|
231 |
|
|
232 |
// open console on connect arrow click |
|
233 | 227 |
$("#machinesview-icon.standard .running div.logo").live('click', function(){ |
234 |
$(this).parent().parent().find("a.action-console").click(); |
|
228 |
var serverID = $(this).parent().parent().attr("id"); |
|
229 |
machine_connect([machine_connect, serverID]); |
|
235 | 230 |
return false; |
236 | 231 |
}); |
237 | 232 |
|
238 | 233 |
$("#machinesview-icon.standard .running div.connect-arrow").live('click', function(){ |
239 |
$(this).parent().parent().find("a.action-console").click(); |
|
234 |
var serverID = $(this).parent().parent().attr("id"); |
|
235 |
machine_connect([machine_connect, serverID]); |
|
240 | 236 |
return false; |
241 | 237 |
}); |
242 | 238 |
|
... | ... | |
245 | 241 |
var serverID = $(this).parent().parent().attr("id"); |
246 | 242 |
machine_connect([machine_connect, serverID]); |
247 | 243 |
return false; |
248 |
return false; |
|
249 | 244 |
}); |
250 | 245 |
|
251 | 246 |
//hide the all of the info contents |
b/ui/templates/machines_single.html | ||
---|---|---|
402 | 402 |
return false; |
403 | 403 |
}); |
404 | 404 |
|
405 |
// open console on connect arrow click |
|
405 |
// connect to machine on machine logo click |
|
406 |
$("#machinesview-single.single div.single-image").live('click', function(){ |
|
407 |
var serverID = $(this).closest(".single-container").attr("id"); |
|
408 |
machine_connect([machine_connect, serverID]); |
|
409 |
return false; |
|
410 |
}); |
|
411 |
|
|
412 |
// connect to machine on connect arrow click |
|
406 | 413 |
$("#machinesview-single.single div.connect-arrow").live('click', function(){ |
407 |
$(this).parent().parent().find("div.action-console").click(); |
|
414 |
var serverID = $(this).closest(".single-container").attr("id"); |
|
415 |
machine_connect([machine_connect, serverID]); |
|
408 | 416 |
return false; |
409 | 417 |
}); |
410 | 418 |
|
Also available in: Unified diff