Revision 384da41e
b/ui/templates/networks.html | ||
---|---|---|
267 | 267 |
<div id="networks" class="separator"></div> |
268 | 268 |
|
269 | 269 |
<script> |
270 |
//hide the all of the networks contents |
|
270 |
// hide the all of the networks contents
|
|
271 | 271 |
$(".network-contents").hide(); |
272 |
//toggle the component with class network-contents |
|
272 |
// toggle the component with class network-contents
|
|
273 | 273 |
$(".show-machines").click(function() { |
274 | 274 |
$(this).parent().next(".network-contents").slideToggle(600); |
275 | 275 |
}); |
276 | 276 |
|
277 |
// intercept remove machine from network click |
|
278 |
$(".remove-icon").click(function() { |
|
279 |
$(this).parent().parent().fadeOut(); |
|
280 |
}); |
|
277 | 281 |
|
278 |
//hide the all of the firewall contents |
|
282 |
// hide the all of the firewall contents
|
|
279 | 283 |
$(".firewall-content").hide(); |
280 |
//toggle the component with class firewall-contents |
|
284 |
// toggle the component with class firewall-contents
|
|
281 | 285 |
$(".show-firewall").click(function() { |
282 | 286 |
$(this).parent().next(".firewall-content").slideToggle(600); |
283 | 287 |
}); |
Also available in: Unified diff