Compare commits

...

3 Commits

Author SHA1 Message Date
FabioL e05bd4d0d5 Fix per problemi di compressione JS 2024-06-10 12:03:44 +02:00
FabioL ea700d360a Fix chiusura tag barra laterale 2024-06-10 11:04:49 +02:00
pek5892 7d22fbede5 Fix salvataggio immagine in Impianti 2024-06-10 09:47:42 +02:00
3 changed files with 8 additions and 7 deletions

View File

@ -136,7 +136,7 @@ const JS = gulp.parallel(() => {
})
.pipe(babel(config.babelOptions))
.pipe(concat('app.min.js'))
.pipe(gulpIf(!config.debug, minifyJS()))
.pipe(gulpIf(!config.debug, minifyJS({compress:false})))
.pipe(gulp.dest(config.production + '/' + config.paths.js));
}, srcJS);

View File

@ -506,8 +506,9 @@ if (Auth::check()) {
echo Modules::getMainMenu();
echo '
</ul>
</section>
<!-- /.sidebar -->
</nav>
<!-- / Sidebar Menu -->
</div>
</aside>';
$in_editor = string_contains($_SERVER['SCRIPT_FILENAME'], 'editor.php');

View File

@ -24,7 +24,7 @@ use Modules\Checklists\Check;
$op = post('op');
$upload_dir = base_dir().'/files/'.Module::find((new Module())->getByField('title', 'Anagrafiche', Models\Locale::getPredefined()->id))->directory;
$upload_dir = base_dir().'/files/'.Module::find((new Module())->getByField('title', 'Impianti', Models\Locale::getPredefined()->id))->directory;
$id_modulo_categorie_impianti = (new Module())->getByField('title', 'Categorie impianti', Models\Locale::getPredefined()->id);
switch ($op) {
@ -81,7 +81,7 @@ switch ($op) {
}
// Eliminazione file
if (post('delete_immagine') !== null) {
if (!empty(post('delete_immagine'))) {
Uploads::delete($record['immagine'], [
'id_module' => $id_module,
'id_record' => $id_record,