[#208] Always show port log icon

This commit is contained in:
Oliver Gorwits
2015-03-24 22:20:02 +00:00
parent f069a0ca39
commit ae2daec7e3
6 changed files with 33 additions and 30 deletions

View File

@@ -162,18 +162,15 @@ div.content > div.tab-content table.nd_floatinghead thead {
/* nudge cell content to the right when port_control controls are enabled */
.nd_editable-cell > .nd_this-port-only {
margin-left: 18px;
margin-right: 18px;
margin-left: 14px;
margin-right: 35px;
}
.nd_editable-cell > .nd_port-only-first {
margin-left: 9px;
margin-left: 5px;
}
.nd_editable-cell > .nd_editable-cell-content {
margin-right: 18px;
}
.table .nd_nudge-for-icon {
padding-left: 25px;
margin-right: 25px;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@@ -269,13 +266,17 @@ td > form.nd_inline-form {
display: none;
}
.nd_hand-icon {
margin-right: 4px;
}
/* port admin log view */
.nd_log-icon {
cursor: pointer;
color: black;
float: left;
visibility: hidden;
margin-top: 3px;
float: right;
padding-left: 10px;
margin-top: 2px;
}
.nd_log-icon:hover, .nd_log-icon:focus {
text-decoration: none;

View File

@@ -97,7 +97,6 @@ $(document).ready(function() {
// toggle visibility of port up/down and edit controls
$('.tab-content').on('mouseenter', '.nd_editable-cell', function() {
$(this).children('.nd_hand-icon').show();
$(this).children('.nd_log-icon').css('visibility', 'visible');
if (! $(this).is(':focus')) {
$(this).children('.nd_edit-icon').show(); // ports
$(this).siblings('td').find('.nd_device-details-edit').show(); // details
@@ -105,7 +104,6 @@ $(document).ready(function() {
});
$('.tab-content').on('mouseleave', '.nd_editable-cell', function() {
$(this).children('.nd_hand-icon').hide();
$(this).children('.nd_log-icon').css('visibility', 'hidden');
if (! $(this).is(':focus')) {
$(this).children('.nd_edit-icon').hide(); // ports
$(this).siblings('td').find('.nd_device-details-edit').hide(); // details