| Server IP : 162.214.74.102 / Your IP : 216.73.217.80 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/imobles/application/plugins/module_forms/assets/js/ |
Upload File : |
function showWebserviceInput() {
if ($('#api_yes').is(':checked')) {
$('#webservice_id').parent().removeClass('hide');
}
$('input[name="api"]').on('change', function () {
var api = $(this).val();
if (api == "sim") {
$('#webservice_id').parent().removeClass('hide');
}
else {
$('#webservice_id').parent().addClass('hide');
}
});
}
function select2Webservices() {
$('#webservice_id').select2({
theme: "bootstrap",
ajax: {
url: $('#_url').val() + "module_forms/webservices/getWebservices",
dataType: "json",
delay: 150,
method: "POST",
data: function (params) {
var queryParams = {
term: params.term
};
return queryParams;
},
processResults: function (data) {
return {
results: $.map(data, function (item) {
return {
text: item.title,
id: item.id
}
})
}
},
cache: true
}
});
}
$(document).ready(function () {
// retiro o autocomple
$('.history-form input').attr('autocomplete','new-password');
select2Webservices();
showWebserviceInput();
});