Provvedimenti di Giustizia
kQuery(function($) {
$('.k-js-documents-table').footable({
toggleSelector: '.footable-toggle',
breakpoints: {
phone: 400,
tablet: 600,
desktop: 800
}
}).bind('footable_row_detail_updated', function(event) {
var container = event.detail;
container.find('.btn-mini').addClass('btn-small').removeClass('btn-mini');
container.find('.footable-row-detail-value').css('display', 'inline-block');
container.find('.footable-row-detail-name').css('display', 'inline-block')
.each(function() {
var $this = $(this);
if ($.trim($this.text()) == '') {
$this.remove();
}
});
});
});
if (typeof Koowa === 'object' && Koowa !== null) {
if (typeof Koowa.translator === 'object' && Koowa.translator !== null) {
Koowa.translator.loadTranslations({"Play":"Riproduzione","View":"Vista","Open":"Apri"});
}
}
kQuery(function($) {
$('a.docman_download__button').downloadLabel({
"force_download": "0",
"gdocs_supported_extensions": [
"ogg",
"doc",
"docx",
"xls",
"xlsx",
"ppt",
"pptx",
"pages",
"ai",
"psd",
"tiff",
"dxf",
"svg",
"eps",
"ps",
"ttf",
"xps"
],
"gdocs_preview": 0
});
});
kQuery(function($) {
var addHiddenFields = function(button) {
var field, i = 0, fields = ['.k-js-tag-search', '.k-js-category-search'];
for (; i < fields.length; i++) {
field = $(fields[i]);
if (field.length && !field.val()) {
var input = $('')
.attr('name', field.attr('name').replace('[]', ''))
.val('');
$(button[0].form).append(input);
}
}
};
$('.k-js-search-submit').click(function() {
addHiddenFields($(this));
});
$('.k-js-search-reset').click(function(event) {
event.preventDefault();
var button = $(this),
form = button[0].form;
$('.k-filters')
.find('input:not(:checkbox), textarea').val('').end()
.find('select').val(null).trigger('change');
addHiddenFields(button);
$(form).append($('').val('1')
.attr('name', 'filter[reset]'));
form.submit();
});
});
jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} });document.documentElement.classList.add('k-js-enabled');