mirror of https://github.com/gophish/gophish
Merge pull request #296 from rcutmore/add-campaign-groups
Add selected group hint in campaign modalpull/297/head
commit
83f221e226
|
@ -316,7 +316,7 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
// Clear user input.
|
||||
$("#groupSelect").val("");
|
||||
$("#groupSelect").typeahead('val', "");
|
||||
return false;
|
||||
});
|
||||
// Create the group typeahead objects
|
||||
|
@ -351,7 +351,9 @@ $(document).ready(function() {
|
|||
}
|
||||
})
|
||||
.bind('typeahead:select', function(ev, group) {
|
||||
$("#groupSelect").typeahead('val', group.name)
|
||||
// Add selected group.
|
||||
$("#groupSelect").typeahead('val', group.name);
|
||||
$("#groupForm").submit();
|
||||
})
|
||||
.bind('typeahead:autocomplete', function(ev, group) {
|
||||
$("#groupSelect").typeahead('val', group.name)
|
||||
|
|
Loading…
Reference in New Issue