Author: bleny Date: 2014-06-17 16:17:56 +0200 (Tue, 17 Jun 2014) New Revision: 2053 Url: http://forge.codelutin.com/projects/wao/repository/revisions/2053 Log: fixes #5215 show active filters with a color Modified: trunk/wao-web/src/main/webapp/wao.css trunk/wao-web/src/main/webapp/wao.js Modified: trunk/wao-web/src/main/webapp/wao.css =================================================================== --- trunk/wao-web/src/main/webapp/wao.css 2014-06-17 14:04:52 UTC (rev 2052) +++ trunk/wao-web/src/main/webapp/wao.css 2014-06-17 14:17:56 UTC (rev 2053) @@ -423,6 +423,10 @@ padding: 0 5px; } +.active-filter label { + font-weight: bold; + color: #008a8a; +} /** * Les boutons Modified: trunk/wao-web/src/main/webapp/wao.js =================================================================== --- trunk/wao-web/src/main/webapp/wao.js 2014-06-17 14:04:52 UTC (rev 2052) +++ trunk/wao-web/src/main/webapp/wao.js 2014-06-17 14:17:56 UTC (rev 2053) @@ -485,7 +485,9 @@ self.$selectedOptionsContainer.empty(); if (selectedOptions.length === 0) { self.$selectedOptionsContainer.append("Pas de filtrage"); + self.$container.removeClass("active-filter"); } else { + self.$container.addClass("active-filter"); var $ul = $('<ul></ul>'); $.each(selectedOptions, function (index, selectedOption) { $ul.append('<li>' + selectedOption.label + '</li>');
participants (1)
-
bleny@users.forge.codelutin.com