chg: [js] Move code from template to misp.js

pull/7002/head
Jakub Onderka 2021-02-12 07:44:48 +01:00
parent 5e48a484b0
commit c9ca98ef04
3 changed files with 5 additions and 8 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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() {