(function () {
if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
msViewportStyle.appendChild(
document.createTextNode("@-ms-viewport{width:auto!important}")
);
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
$(document).ready(function () {
jQuery.curCSS = jQuery.css; // fix wersji jQuery
$('body').on('click', function (e) {
if ($(e.target).data('toggle') !== 'popover'
&& $(e.target).parents('[data-toggle="popover"]').length === 0
&& $(e.target).parents('.popover.in').length === 0) {
$('[data-toggle="popover"]').popover('hide');
}
});
$(".popover-show").on('click', function (e) {
e.stopPropagation();
var popovers = $(this).siblings('[data-toggle="popover"]');
if (popovers.length > 0) {
popovers.popover('toggle');
}
});
$(".showSearch").click(function () {
$(this).hide();
$(".searchPanel").slideDown();
});
$.extend($.ui.dialog.prototype.options, {
create: function () {
$(this).closest(".ui-dialog")
.find("button")
.addClass("ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only");
}
});
var menuItems = $("div.navbar-collapse ul li");
if (menuItems.length < 1) {
$(".navbar-toggle").hide();
function showFixedDialog(id) {
$('#' + id).dialog("option", "dialogClass", "fixed-dialog").dialog("open");