22
| <![CDATA[<script>
if (typeof(jQuery) === 'undefined' && !window.deferAfterjQueryLoaded) {
window.deferAfterjQueryLoaded = [];
Object.defineProperty(window, "$", {
set: function(value) {
window.setTimeout(function() {
$.each(window.deferAfterjQueryLoaded, function(index, fn) {
fn();
});
}, 0);
Object.defineProperty(window, "$", {
value: value
});
},
configurable: true
});
}
var csrfData = {"formatted":{"csrf_token_name":"668ef289f1baa63de20bd33bb601460f"},"token_name":"csrf_token_name","hash":"668ef289f1baa63de20bd33bb601460f"};
if (typeof(jQuery) == 'undefined') {
window.deferAfterjQueryLoaded.push(function() {
csrf_jquery_ajax_setup();
});
window.addEventListener('load', function() {
csrf_jquery_ajax_setup();
}, true);
} else {
csrf_jquery_ajax_setup();
}
function csrf_jquery_ajax_setup() {
$.ajaxSetup({
data: csrfData.formatted
});
$(document).ajaxError(function(event, request, settings) {
if (request.status === 419) {
alert_float('warning', 'Page expired, refresh the page make an action.')
}
});
}
</script>]]>
|
65
| <![CDATA[<script>
function custom_fields_hyperlink(){
var cf_hyperlink = $('body').find('.cf-hyperlink');
if(cf_hyperlink.length){
$.each(cf_hyperlink,function(){
var cfh_wrapper = $(this);
var cfh_field_to = cfh_wrapper.attr('data-fieldto');
var cfh_field_id = cfh_wrapper.attr('data-field-id');
var textEl = $('body').find('#custom_fields_'+cfh_field_to+'_'+cfh_field_id+'_popover');
var hiddenField = $("#custom_fields\\\["+cfh_field_to+"\\\]\\\["+cfh_field_id+"\\\]");
var cfh_value = cfh_wrapper.attr('data-value');
hiddenField.val(cfh_value);
if($(hiddenField.val()).html() != ''){
textEl.html($(hiddenField.val()).html());
}
var cfh_field_name = cfh_wrapper.attr('data-field-name');
textEl.popover({
html: true,
trigger: "manual",
placement: "top",
title:cfh_field_name,
content:function(){
return $(cfh_popover_templates[cfh_field_id]).html();
}
}).on("click", function(e){
var $popup = $(this);
$popup.popover("toggle");
var titleField = $("#custom_fields_"+cfh_field_to+"_"+cfh_field_id+"_title");
var urlField = $("#custom_fields_"+cfh_field_to+"_"+cfh_field_id+"_link");
var ttl = $(hiddenField.val()).html();
var cfUrl = $(hiddenField.val()).attr("href");
if(cfUrl){
$('#cf_hyperlink_open_'+cfh_field_id).attr('href',(cfUrl.indexOf('://') === -1 ? 'http://' + cfUrl : cfUrl));
}
titleField.val(ttl);
urlField.val(cfUrl);
$("#custom_fields_"+cfh_field_to+"_"+cfh_field_id+"_btn-save").click(function(){
hiddenField.val((urlField.val() != '' ? '<a href="'+urlField.val()+'" target="_blank">' + titleField.val() + '</a>' : ''));
textEl.html(titleField.val() == "" ? "Clique aqui para adicionar link" : titleField.val());
$popup.popover("toggle");
});
$("#custom_fields_"+cfh_field_to+"_"+cfh_field_id+"_btn-cancel").click(function(){
if(urlField.val() == ''){
hiddenField.val('');
}
$popup.popover("toggle");
});
});
});
}
}
</script>]]>
|
118
| <![CDATA[<script>
var site_url = 'https://www.colatina.es.gov.br/solicserv/',
app = {},
cfh_popover_templates = {};
app.isRTL = 'false';
app.is_mobile = '';
app.months_json = '["Janeiro","Fevereiro","Mar\u00e7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]';
app.browser = "";
app.max_php_ini_upload_size_bytes = "52428800";
app.locale = "pt";
app.options = {
calendar_events_limit: "4",
calendar_first_day: "0",
tables_pagination_limit: "25",
enable_google_picker: "1",
google_client_id: "",
google_api: "",
default_view_calendar: "dayGridMonth",
timezone: "America/Sao_Paulo",
allowed_files: ".png,.jpg,.pdf,.doc,.docx,.xls,.xlsx,.zip,.rar,.txt",
date_format: "d/m/Y",
time_format: "24",
};
app.lang = {
file_exceeds_maxfile_size_in_form: "O arquivo enviado excede a diretiva MAX_FILE_SIZE que foi especificada no formulário HTML" + ' (50 MB)',
file_exceeds_max_filesize: "O arquivo enviado excede a diretiva upload_max_filesize em php.ini" + ' (50 MB)',
validation_extension_not_allowed: "Extensão de arquivo não permitida",
sign_document_validation: "Por favor assine o documento.",
dt_length_menu_all: "Todos",
drop_files_here_to_upload: "Solte os arquivos aqui para carregar",
browser_not_support_drag_and_drop: "Seu navegador não suporta carregar os arquivos por arrastar'e'soltar",
confirm_action_prompt: "Tem certeza de que deseja executar esta ação?",
datatables: {"emptyTable":"Nenhuma entrada encontrado","info":"Mostrar _START_ a _END_ de _TOTAL_ entrada","infoEmpty":"Mostrar 0 a 0 de 0 entrada","infoFiltered":"(filtrado do _MAX_ total entrada)","lengthMenu":"_MENU_","loadingRecords":"Carregando...","processing":"<div class=\"dt-loader\"><\/div>","search":"<div class=\"input-group\"><span class=\"input-group-addon\"><span class=\"fa fa-search\"><\/span><\/span>","searchPlaceholder":"Procurar:","zeroRecords":"Nenhum registro compat\u00edvel encontrado","paginate":{"first":"Primeiro","last":"\u00daltimo","next":"Pr\u00f3ximo","previous":"Anterior"},"aria":{"sortAscending":"ativar a classifica\u00e7\u00e3o ascendente da coluna","sortDescending":"ativar a classifica\u00e7\u00e3o descendente da coluna"}},
discussions_lang: {"discussion_add_comment":"Adicionar coment\u00e1rio","discussion_newest":"Mais novos","discussion_oldest":"Mais antigos","discussion_attachments":"Anexos","discussion_send":"Enviar","discussion_reply":"Responder","discussion_edit":"Editar","discussion_edited":"Modificado","discussion_you":"Voc\u00ea","discussion_save":"Salvar","discussion_delete":"Deletar","discussion_view_all_replies":"Mostrar todas as respostas","discussion_hide_replies":"Esconder Respostas","discussion_no_comments":"Nenhum coment\u00e1rio","discussion_no_attachments":"Nenhum anexo","discussion_attachments_drop":"Arraste e solte para carregar os arquivos"},
};
window.addEventListener('load',function(){
custom_fields_hyperlink();
});
</script>]]>
|
162
| <![CDATA[<script>
/**
* @deprecated 2.3.2
* Do not use any of these below as will be removed in future updates.
*/
var isRTL = 'false';
var calendar_events_limit = "4";
var maximum_allowed_ticket_attachments = "4";
var max_php_ini_upload_size_bytes = "52428800";
var file_exceeds_maxfile_size_in_form = "O arquivo enviado excede a diretiva MAX_FILE_SIZE que foi especificada no formulário HTML" + ' (50 MB)';
var file_exceeds_max_filesize = "O arquivo enviado excede a diretiva upload_max_filesize em php.ini" + ' (50 MB)';
var validation_extension_not_allowed = "Extensão de arquivo não permitida";
var sign_document_validation = "Por favor assine o documento.";
var dt_length_menu_all = "Todos";
var drop_files_here_to_upload = "Solte os arquivos aqui para carregar";
var browser_not_support_drag_and_drop = "Seu navegador não suporta carregar os arquivos por arrastar'e'soltar";
var remove_file = "Remover arquivo";
var tables_pagination_limit = "25";
var enable_google_picker = "1";
var google_client_id = "";
var google_api = "";
var acceptable_mimes = ".png,.jpg,.pdf,.doc,.docx,.xls,.xlsx,.zip,.rar,.txt, image/png, image/jpeg, application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/x-zip, application/x-rar, text/plain";
var date_format = "d/m/Y";
var time_format = "24";
var default_view_calendar = "dayGridMonth";
var dt_lang = {"emptyTable":"Nenhuma entrada encontrado","info":"Mostrar _START_ a _END_ de _TOTAL_ entrada","infoEmpty":"Mostrar 0 a 0 de 0 entrada","infoFiltered":"(filtrado do _MAX_ total entrada)","lengthMenu":"_MENU_","loadingRecords":"Carregando...","processing":"<div class=\"dt-loader\"><\/div>","search":"<div class=\"input-group\"><span class=\"input-group-addon\"><span class=\"fa fa-search\"><\/span><\/span>","searchPlaceholder":"Procurar:","zeroRecords":"Nenhum registro compat\u00edvel encontrado","paginate":{"first":"Primeiro","last":"\u00daltimo","next":"Pr\u00f3ximo","previous":"Anterior"},"aria":{"sortAscending":"ativar a classifica\u00e7\u00e3o ascendente da coluna","sortDescending":"ativar a classifica\u00e7\u00e3o descendente da coluna"}};
var discussions_lang = {"discussion_add_comment":"Adicionar coment\u00e1rio","discussion_newest":"Mais novos","discussion_oldest":"Mais antigos","discussion_attachments":"Anexos","discussion_send":"Enviar","discussion_reply":"Responder","discussion_edit":"Editar","discussion_edited":"Modificado","discussion_you":"Voc\u00ea","discussion_save":"Salvar","discussion_delete":"Deletar","discussion_view_all_replies":"Mostrar todas as respostas","discussion_hide_replies":"Esconder Respostas","discussion_no_comments":"Nenhum coment\u00e1rio","discussion_no_attachments":"Nenhum anexo","discussion_attachments_drop":"Arraste e solte para carregar os arquivos"};
var confirm_action_prompt = "Tem certeza de que deseja executar esta ação?";
var cf_translate_input_link_tip = "Clique aqui para adicionar link";
var locale = 'pt';
var timezone = "America/Sao_Paulo";
var allowed_files = ".png,.jpg,.pdf,.doc,.docx,.xls,.xlsx,.zip,.rar,.txt";
var calendar_first_day = '0';
var months_json = '["Janeiro","Fevereiro","Mar\u00e7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]';
</script>]]>
|