mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
feature #526 : hide the bullet on infos/errors/warnings
... unless we have several items to display in the box
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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;}
|
||||
|
||||
Reference in New Issue
Block a user