mirror of https://github.com/gophish/gophish
Add selected group hint in campaign modal
parent
dff0e9ef25
commit
aa8f80c694
|
@ -316,7 +316,7 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Clear user input.
|
// Clear user input.
|
||||||
$("#groupSelect").val("");
|
$("#groupSelect").typeahead('val', "");
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
// Create the group typeahead objects
|
// Create the group typeahead objects
|
||||||
|
@ -351,7 +351,9 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.bind('typeahead:select', function(ev, group) {
|
.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) {
|
.bind('typeahead:autocomplete', function(ev, group) {
|
||||||
$("#groupSelect").typeahead('val', group.name)
|
$("#groupSelect").typeahead('val', group.name)
|
||||||
|
|
Loading…
Reference in New Issue