mirror of https://github.com/MISP/MISP
chg: [UI] WIP - generic_picker slightly improved tag template
parent
492fdacdf1
commit
b9886e536a
|
@ -710,7 +710,7 @@ class TagsController extends AppController
|
|||
|
||||
$items = array();
|
||||
foreach ($tags as $k => $tag) {
|
||||
$tagTemplate = '<a href="#" class="tagComplete" style="background-color:{{=it.background}}; color:{{=it.color}}">{{=it.name}}</a>';
|
||||
$tagTemplate = '<span href="#" class="tagComplete" style="background-color:{{=it.background}}; color:{{=it.color}}">{{=it.name}}</span>';
|
||||
|
||||
$tagName = $tag['name'];
|
||||
$choice_id = $k;
|
||||
|
|
|
@ -253,6 +253,7 @@ function submitFunction(clicked, callback) {
|
|||
selected = $clicked.attr('value');
|
||||
additionalData = $clicked.data('additionaldata');
|
||||
}
|
||||
execAndClose(clicked);
|
||||
callback(selected, additionalData);
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -3381,7 +3381,6 @@ function addGalaxyListener(id) {
|
|||
popoverPopup(id, target_type + '/' + target_id, 'galaxies', 'selectGalaxyNamespace');
|
||||
}
|
||||
|
||||
// function quickSubmitGalaxyForm(scope, cluster_id, event_id) {
|
||||
function quickSubmitGalaxyForm(cluster_ids, additionalData) {
|
||||
scope = additionalData['target_id'];
|
||||
scope_id = additionalData['target_type'];
|
||||
|
|
Loading…
Reference in New Issue