mirror of https://github.com/MISP/MISP
chg: [js] Move code from template to misp.js
parent
5e48a484b0
commit
c9ca98ef04
|
@ -125,10 +125,6 @@
|
|||
<?php
|
||||
endif;
|
||||
?>
|
||||
if ($('.alert').text().indexOf("$flashErrorMessage") >= 0) {
|
||||
var flashMessageLink = '<span class="useCursorPointer underline bold" onClick="flashErrorPopover();">here</span>';
|
||||
$('.alert').html(($('.alert').html().replace("$flashErrorMessage", flashMessageLink)));
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -120,10 +120,6 @@
|
|||
<?php
|
||||
endif;
|
||||
?>
|
||||
if ($('.alert').text().indexOf("$flashErrorMessage") >= 0) {
|
||||
var flashMessageLink = '<span class="useCursorPointer underline bold" onClick="flashErrorPopover();">here</span>';
|
||||
$('.alert').html(($('.alert').html().replace("$flashErrorMessage", flashMessageLink)));
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -4925,6 +4925,11 @@ $(document).ready(function() {
|
|||
html: true,
|
||||
trigger: 'hover'
|
||||
});
|
||||
|
||||
if ($('.alert').text().indexOf("$flashErrorMessage") >= 0) {
|
||||
var flashMessageLink = '<span class="useCursorPointer underline bold" onClick="flashErrorPopover();">here</span>';
|
||||
$('.alert').html(($('.alert').html().replace("$flashErrorMessage", flashMessageLink)));
|
||||
}
|
||||
});
|
||||
|
||||
$(document.body).on("click", ".correlation-expand-button", function() {
|
||||
|
|
Loading…
Reference in New Issue