var re = new RegExp('(?:^|\\s)'+prefix+'-(bottom|top|left|right)(?:$|\\s)');
var width = $(window).width();
var prefix = width < 768 ? 'xs' : width < 992 ? 'sm' : width < '1200' ? 'md' : width < '1600' ? 'lg' : 'xlg';
var re = new RegExp('(?:^|\s)'+prefix+'-(bottom|top|left|right)(?:$|\s)');
var options = {
trigger: "hover",
container: "body",
placement: ok[1],
html: !0,
viewport: {
selector: "body",
padding: 2
},
template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
};
if ($(this).hasClass('error'))
options.delay = { show: 500, hide: 10};
$(this).popover(options);