mirror of https://github.com/MISP/MISP
fix: [enrichment view] Making sure the document is ready before calling any javascript
parent
ba5ec4ee46
commit
0b422b54d8
|
@ -184,11 +184,13 @@
|
|||
echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'event', 'menuItem' => $menuItem));
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$('.distributionToggle').change(function() {
|
||||
if ($(this).val() == 4) {
|
||||
$(this).next().show();
|
||||
} else {
|
||||
$(this).next().hide();
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$('.distributionToggle').change(function() {
|
||||
if ($(this).val() == 4) {
|
||||
$(this).next().show();
|
||||
} else {
|
||||
$(this).next().hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue