diff --git a/static/js/app/campaigns.js b/static/js/app/campaigns.js
index d98afd24..f04e88ef 100644
--- a/static/js/app/campaigns.js
+++ b/static/js/app/campaigns.js
@@ -302,24 +302,24 @@ $(document).ready(function() {
errorFlash("Error fetching campaigns")
})
$("#groupForm").submit(function() {
- // Add row to group table.
- var newRow = groupTable.row.add([
- $("#groupSelect").val(),
- ''
- ]).draw().node();
+ // Add row to group table.
+ var newRow = groupTable.row.add([
+ $("#groupSelect").val(),
+ ''
+ ]).draw().node();
- // Set event handler for removing row from group table.
- $(newRow).on("click", "span>i.fa-trash-o", function() {
- groupTable.row($(this).parents('tr'))
- .remove()
- .draw();
- });
-
- // Clear user input.
- $("#groupSelect").val("");
- return false;
+ // Set event handler for removing row from group table.
+ $(newRow).on("click", "span>i.fa-trash-o", function() {
+ groupTable.row($(this).parents('tr'))
+ .remove()
+ .draw();
});
- // Create the group typeahead objects
+
+ // Clear user input.
+ $("#groupSelect").val("");
+ return false;
+ });
+ // Create the group typeahead objects
groupTable = $("#groupTable").DataTable({
columnDefs: [{
orderable: false,