diff --git a/dist/js/boosted.js b/dist/js/boosted.js index 5d9b32a791..07e168dc23 100644 --- a/dist/js/boosted.js +++ b/dist/js/boosted.js @@ -142,7 +142,7 @@ $collTabHeadings.attr({role:'tab'});$collTabPanels.attr({role:'tabpanel'});$('.p * ------------------------------------------------------------------------ */$(document).on(Event.CLICK_DATA_API,Selector.DATA_TOGGLE,function(event){event.preventDefault();var target=Collapse._getTargetFromElement(this);var data=$(target).data(DATA_KEY);var config=data?'toggle':$(this).data();Collapse._jQueryInterface.call($(target),config);});$(function(){$(Selector.ACCORDION_HEADING).each(function(){ // let collpanel = $(this).attr('data-target') ? $($(this).attr('data-target')) : $($(this).attr('href')) $(this).prepend('
');}); // local navigation -$('.o-nav-local .nav-inline.collapse .nav-link').on('click',function(){$(undefined).parent().parent().prev('.local-select').text($(undefined).text());});$('.o-nav-local .nav-inline.collapse').on('shown.bs.collapse',function(){$(undefined).find('.nav-item:first-child .nav-link').focus();});$('.o-nav-local .nav-inline.collapse').on('hidden.bs.collapse',function(){$(undefined).prev('.local-select').focus();});$(document).ready(function(){$('.o-nav-local .local-select').each(function(){$(this).text($(this).next('.nav-inline.collapse').find('.nav-item:first-child .nav-link').text());});});$(document).on('click',function(){$('.o-nav-local .collapse.in').collapse('hide');});}); /** +$('.o-nav-local .nav-inline.collapse .nav-link').on('click',function(event){$(event.currentTarget).parent().parent().prev('.local-select').text($(event.currentTarget).text());});$('.o-nav-local .nav-inline.collapse').on('shown.bs.collapse',function(event){$(event.currentTarget).find('.nav-item:first-child .nav-link').trigger('focus');});$('.o-nav-local .nav-inline.collapse').on('hidden.bs.collapse',function(event){$(event.currentTarget).prev('.local-select').trigger('focus');});$(document).ready(function(){$('.o-nav-local .local-select').each(function(){$(this).text($(this).next('.nav-inline.collapse').find('.nav-item:first-child .nav-link').text());});});$(document).on('click',function(){Collapse._jQueryInterface.call($('.o-nav-local .collapse.in'),'hide');});}); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ diff --git a/dist/js/boosted.min.js b/dist/js/boosted.min.js index d7a3a39b30..bc4128d54f 100644 --- a/dist/js/boosted.min.js +++ b/dist/js/boosted.min.js @@ -3,5 +3,5 @@ * Copyright 2011-2016 Orange SA * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ -if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>=3)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v3.0.0")}(jQuery),+function(a){"use strict";function b(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d=function(a,b,c){for(var d=!0;d;){var e=a,f=b,g=c;d=!1,null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0!==h){if("value"in h)return h.value;var i=h.get;if(void 0===i)return;return i.call(g)}var j=Object.getPrototypeOf(e);if(null===j)return;a=j,b=f,c=g,d=!0,h=j=void 0}},e=function(){function a(a,b){for(var c=0;c