This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Recipe for creating and updating security groups programmatically. | |
""" | |
import collections | |
import boto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addTableRow(table){ | |
// clone the last row in the table | |
var $tr = $(table).find("tbody tr:last").clone(); | |
//add the delete button only once | |
if ($(table).find('tbody tr').length == 1){ | |
$('<td><a class="button"><span class="delete">Delete</span></a></td>').appendTo($tr); | |
} | |
//clear any existing values |