collapsable area in agents ips
This commit is contained in:
parent
87368fb9a3
commit
32159b771d
|
@ -155,10 +155,14 @@ if (empty($address) === false) {
|
|||
$address_text = '<span class="bolder" >'.$address.'</span>';
|
||||
if (!empty($addresses) === true) {
|
||||
if (count($addresses) > 3) {
|
||||
$address_text .= '  <span id="deploy_sec_ips">'.html_print_image(
|
||||
$address_text .= '  <span id="deploy_sec_ips_down">'.html_print_image(
|
||||
'images/sort_down_black.png',
|
||||
true,
|
||||
['alt' => 'down']
|
||||
).'</span><span id="deploy_sec_ips_up" style="display: none;">'.html_print_image(
|
||||
'images/sort_up_black.png',
|
||||
true,
|
||||
['alt' => 'up']
|
||||
).'</span>';
|
||||
$address_text .= '<div id="secondary_ips" class="invisible">';
|
||||
}
|
||||
|
@ -661,8 +665,18 @@ if (isset($table_interface) === true) {
|
|||
|
||||
<script type="text/javascript">
|
||||
$(document).ready (function () {
|
||||
$('#deploy_sec_ips').on('click', function() {
|
||||
$('#secondary_ips').toggle();
|
||||
$('#deploy_sec_ips_up').on('click', function() {
|
||||
$('#secondary_ips').hide();
|
||||
// Avoid setting display block property with show/hide methods.
|
||||
$('#deploy_sec_ips_up').css('display', 'none');
|
||||
$('#deploy_sec_ips_down').css('display', '');
|
||||
});
|
||||
|
||||
$('#deploy_sec_ips_down').on('click', function() {
|
||||
$('#secondary_ips').show();
|
||||
// Avoid setting display block property with show/hide methods.
|
||||
$('#deploy_sec_ips_down').css('display', 'none');
|
||||
$('#deploy_sec_ips_up').css('display', '');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue