Commit f451e57f authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] Show good border in list when there are hidden element #2 (need to be done after load too)

parent 8302ea97
......@@ -16,10 +16,10 @@
<supportUrl>https://extensions.sondages.pro/themes-and-templates/skelvanilla-a11y-and-usuability/</supportUrl>
<copyright>Copyright (C) 2018-2019 Denis Chenu / Sondages Pro</copyright>
<license>GNU General Public License version 3 or later</license>
<version>6.3.1</version>
<version>6.3.2</version>
<apiVersion>3</apiVersion>
<description><![CDATA[<strong>LimeSurvey Bootstrap Vanilla Survey Theme with Accessibility and Options</strong><br>Base on vanilla theme, usage of more aria, fix some role and aria from core.<br>Allow usage of a lot of variations, list of variation can be updated. Some decoration option using boostrap class.]]></description>
<last_update>2019-10-08 07:08:51</last_update>
<last_update>2019-10-25 14:31:50</last_update>
<extends>vanilla</extends>
</metadata>
......
......@@ -2,7 +2,7 @@
This a copy of Vanilla theme.js file with some update for skelvanilla
Broke dependency of Vanilla template
Please, use theme.js or custom.js
@version 6.3.2
*/
/**
......@@ -74,6 +74,12 @@ var ThemeScripts = function(){
};
var fixLastItemClass = function fixLastItemClass(){
$("[id^='question'] .checkbox-list > ul,[id^='question'] .radio-list > ul").each(function(){
if($(this).find("li.ls-hidden").length) {
$(this).children("li:not('.ls-hidden')").first().addClass("first-child");
$(this).children("li:not('.ls-hidden')").last().addClass("last-child");
}
});
$("[id^='question']").on('relevance:on',"li[id^='javatbd']",function(event,data) {
if(event.target != this) return; // not needed now, but after (2016-11-07)
data = $.extend({style:'hidden'}, data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment