From 43ab69002e934826252192730835c92d01d371e3 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 26 Sep 2016 13:43:04 +0200 Subject: [PATCH] feature #526 : hide the bullet on infos/errors/warnings ... unless we have several items to display in the box --- admin/themes/default/template/admin.tpl | 14 ++++++++++++++ admin/themes/default/theme.css | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/admin/themes/default/template/admin.tpl b/admin/themes/default/template/admin.tpl index 1635c5127..215801656 100644 --- a/admin/themes/default/template/admin.tpl +++ b/admin/themes/default/template/admin.tpl @@ -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}