Revert form description back to inline format

This is a partial revert from:
* 2d802128ac
* 73a2060b42
This commit is contained in:
Markus Frosch 2018-06-01 15:21:07 +02:00 committed by Thomas Gelf
parent ec11dea8a9
commit a520539d77
2 changed files with 13 additions and 25 deletions

View File

@ -888,30 +888,14 @@ form dd.active li.active input.related-action[type='submit'] {
form {
p.description {
color: inherit;
color: @gray;
font-style: normal;
position: absolute;
bottom: 1em;
width: 96%;
max-width: unset;
margin-left: 13em;
max-height: 12em;
overflow-x: auto;
background: @tr-active-color;
border: 1px solid @icinga-blue;
border-radius: 0.5em;
font-size: 1.2em;
right: 2%;
color: @icinga-blue;
padding-left: 3em;
display: none;
z-index: 100;
padding: 0.5em;
}
p.description:before {
content: '\e881';
content: '\e85b';
font-family: 'ifont';
font-size: 1.5em;
color: @icinga-blue;
position: absolute;
margin-left: -1.5em;

View File

@ -608,19 +608,23 @@
var $dt = $dd.prev();
var $form = $dd.closest('form');
var $desc = $dd.find('p.description');
if ($desc.length) {
$form.css({ marginBottom: ($desc.height() + 48) + 'px' });
}
$form.find('dt, dd, li').removeClass('active');
$li.addClass('active');
$dt.addClass('active');
$dd.addClass('active');
$dd.find('p.description.fading-out')
.stop(true)
.removeClass('fading-out')
.fadeIn('fast');
$form.find('dd').not($dd)
.find('p.description')
.hide();
.not('.fading-out')
.addClass('fading-out')
.delay(500)
.fadeOut('slow', function () {
$(this).removeClass('fading-out').hide()
});
},
highlightFormErrors: function($container)