| 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/hexagon/ui/lib/ |
Upload File : |
Dropzone.autoDiscover = false;
$(document).ready(function () {
//$('[data-toggle="datepicker"]').datepicker();
//$('.amount').autoNumeric('init');
$("#emsg").hide();
$("#emsg_post_conflits").hide();
$("#emsg_select_account").hide();
var _url = $("#_url").val();
var upload_resp;
var $ib_form_submit = $("#submit");
var ib_file = new Dropzone("#upload_container",
{
url: _url + "transactions/uploadOfx/",
maxFiles: 1,
acceptedFiles: ".ofx",
autoProcessQueue: false,accept: function(file, done) {
// console.log("uploaded");
done();
$(".div_class_process").removeClass('hide')
},
maxfilesexceeded: function(file) {
this.removeAllFiles();
this.addFile(file);
}
}
);
ib_file.on("sending", function() {
$ib_form_submit.prop('disabled', true);
});
ib_file.on("success", function(file,response) {
$ib_form_submit.prop('disabled', false);
location.reload();
});
$ib_form_submit.click(function (e) {
ib_file.processQueue();
});
$('#select_account').on("click", function(e) {
e.preventDefault();
$('#ibox_form_select_account').block({message: block_msg});
var _url = $("#_url").val();
$.post(_url + 'transactions/importOFX/', $("#form_select_account").serialize())
.done(function (data) {
if ($.isNumeric(data)) {
location.reload();
} else {
$('#ibox_form_select_account').unblock();
var body = $("html, body");
body.animate({scrollTop: 0}, '1000', 'swing');
$("#emsg_select_account_body").html(data);
$("#emsg_select_account").show("slow");
}
})
});
});