feature #526 : hide the bullet on infos/errors/warnings

... unless we have several items to display in the box
This commit is contained in:
plegall
2016-09-26 13:43:04 +02:00
parent b1f13e3657
commit 43ab69002e
2 changed files with 16 additions and 2 deletions
+14
View File
@@ -25,6 +25,20 @@ jQuery.fn.lightAccordion = function(options) {
$('#menubar').lightAccordion({
active: {$ACTIVE_MENU}
});
/* in case we have several infos/errors/warnings display bullets */
jQuery(document).ready(function() {
var eiw = ["infos","erros","warnings"];
for (var i = 0; i < eiw.length; i++) {
var boxType = eiw[i];
if (jQuery("."+boxType+" ul li").length > 1) {
jQuery("."+boxType+" ul li").css("list-style-type", "square");
jQuery("."+boxType+" .eiw-icon").css("margin-right", "20px");
}
}
});
{/footer_script}
<div id="menubar">
+2 -2
View File
@@ -818,7 +818,7 @@ h2:lang(en) { text-transform:capitalize; }
.eiw-icon {
float: left;
font-size: 40px;
margin-right: 20px;
margin-right: 10px;
}
.infos {
@@ -839,7 +839,7 @@ h2:lang(en) { text-transform:capitalize; }
border-left:4px solid #ee8800;
}
.infos li, .errors li, .warnings li { list-style-type:square; }
.infos li, .errors li, .warnings li { list-style-type:none; }
.infos .submit {margin-left:30px;}
.checkActions {text-align:left;padding:0;margin:0;}