1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-23 14:57:46 +01:00

Fix ricerca fatture

This commit is contained in:
Thomas Zilio 2019-03-01 11:51:21 +01:00
parent 89796659f4
commit 4f7124338e
3 changed files with 16 additions and 3 deletions

View File

@ -506,8 +506,7 @@ function launch_modal(title, href, init_modal, id) {
}
}
// Datatable
function start_datatables() {
function start_local_datatables(){
$('.datatables').each(function () {
if (!$.fn.DataTable.isDataTable($(this))) {
$(this).DataTable({
@ -524,6 +523,11 @@ function start_datatables() {
});
}
});
}
// Datatable
function start_datatables() {
start_local_datatables();
$('.main-records').each(function () {
var $this = $(this);

View File

@ -100,7 +100,14 @@ echo '
</div>
<div class="box-body" id="list">';
if (Interaction::isEnabled()) {
echo '
<p>'.tr('Per vedere le fatture da importare utilizza il pulsante _BUTTON_', [
'_BUTTON_' => '<b>"'.tr('Ricerca fatture di acquisto').'"</b>',
]).'.</p>';
} else {
include $structure->filepath('list.php');
}
echo '

View File

@ -9,7 +9,7 @@ $directory = Plugins\ImportFE\FatturaElettronica::getImportDirectory();
if (!empty($list)) {
echo '
<table class="table table-striped table-hover table-condensed table-bordered">
<table class="table table-striped table-hover table-condensed table-bordered datatables">
<thead>
<tr>
<th>'.tr('Nome').'</th>
@ -99,4 +99,6 @@ function delete_fe(button, file) {
}
});
}
start_local_datatables();
</script>';