mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-23 06:47:40 +01:00
Fix ricerca fatture
This commit is contained in:
parent
89796659f4
commit
4f7124338e
@ -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);
|
||||
|
@ -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 '
|
||||
|
||||
|
@ -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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user