// Bootstrap Confirmation $('[data-toggle=confirmation]').confirmation({ rootSelector: '[data-toggle=confirmation]', title: lang.are_you_sure, btnOkLabel: lang.yes, btnCancelLabel: lang.no }); //Tootip activator $(function () { $('[data-toggle="tooltip"]').tooltip(); $('.search-field-header').on("keydown", function(event) { if(event.which == 13) { $('#bigger-search').submit(); } }); }); //xs hidden categories $("#show-xs-nav").click(function () { $("#nav-categories").toggle("slow", function () { if ($(this).is(":visible") == true) { $("#show-xs-nav .hidde-sp").show(); $("#show-xs-nav .show-sp").hide(); } else { $("#show-xs-nav .hidde-sp").hide(); $("#show-xs-nav .show-sp").show(); } }); });