1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Introduzione modulo Stampe

This commit is contained in:
Thomas Zilio
2020-02-24 15:37:27 +01:00
parent 73d627a062
commit cd3349a97d
6 changed files with 78 additions and 8 deletions

View File

@@ -22,7 +22,6 @@ if (!empty($id_record)) {
]);
Util\Query::setSegments(true);
}
$query = str_replace(['AND `deleted_at` IS NULL', '`deleted_at` IS NULL AND', '`deleted_at` IS NULL', 'AND deleted_at IS NULL', 'deleted_at IS NULL AND', 'deleted_at IS NULL'], '', $query);
$has_access = !empty($query) ? $dbo->fetchNum($query) !== 0 : true;
@@ -150,9 +149,9 @@ if (empty($record) || !$has_access) {
</div>
</div>
</div>
<script>
$(document).ready(function(){
$(document).ready(function(){
$("#restore").click(function(){
$("input[name=op]").attr("value", "restore");
$("#submit").trigger("click");
@@ -188,7 +187,7 @@ if (empty($record) || !$has_access) {
$("#save").click(function(){
//submitAjax(form);
$("#submit").trigger("click");
});';
@@ -262,9 +261,9 @@ if (empty($record) || !$has_access) {
<script>
$(document).ready(function(){
cleanup_inputs();
var form = $("#module-edit").find("form").first();
// Campi a inizio form
form.prepend($("#custom_fields_top-edit").html());
@@ -278,7 +277,7 @@ if (empty($record) || !$has_access) {
if (!last.length) {
last = form.find(".row").eq(-2);
}
last.after($("#custom_fields_bottom-edit").html());
restart_inputs();
});