mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-01 10:37:31 +01:00
Correzioni minori sul calendario
This commit is contained in:
parent
0ae04d921d
commit
6d2063837d
@ -289,11 +289,11 @@ echo '
|
|||||||
globals.dashboard = {
|
globals.dashboard = {
|
||||||
load_url: globals.rootdir + "/actions.php?id_module='.$id_module.'",
|
load_url: globals.rootdir + "/actions.php?id_module='.$id_module.'",
|
||||||
style: "'.$def.'",
|
style: "'.$def.'",
|
||||||
show_sunday: "'.setting('Visualizzare la domenica sul calendario').'",
|
show_sunday: '.intval(setting('Visualizzare la domenica sul calendario')).',
|
||||||
start_time: "'.setting('Ora inizio sul calendario').'",
|
start_time: "'.setting('Ora inizio sul calendario').'",
|
||||||
end_time: "'.((setting('Ora fine sul calendario') != '00:00:00' && !empty(setting('Ora fine sul calendario'))) ? setting('Ora fine sul calendario') : '23:59:59').'",
|
end_time: "'.((setting('Ora fine sul calendario') != '00:00:00' && !empty(setting('Ora fine sul calendario'))) ? setting('Ora fine sul calendario') : '23:59:59').'",
|
||||||
write_permission: "'.intval($modulo_interventi->permission == 'rw').'",
|
write_permission: '.intval($modulo_interventi->permission == 'rw').',
|
||||||
tooltip: "'.setting('Utilizzare i tooltip sul calendario').'",
|
tooltip: '.intval(setting('Utilizzare i tooltip sul calendario')).',
|
||||||
calendar: null,
|
calendar: null,
|
||||||
/* timeFormat: {
|
/* timeFormat: {
|
||||||
hour: "2-digit",
|
hour: "2-digit",
|
||||||
@ -313,16 +313,16 @@ echo '
|
|||||||
};
|
};
|
||||||
|
|
||||||
function aggiorna_contatore(counter_id) {
|
function aggiorna_contatore(counter_id) {
|
||||||
var counter = $(counter_id);
|
let counter = $(counter_id);
|
||||||
|
|
||||||
var dropdown = counter.find(".dropdown-menu");
|
let dropdown = counter.find(".dropdown-menu");
|
||||||
var selected = dropdown.find("input:checked").length;
|
let selected = dropdown.find("input:checked").length;
|
||||||
var total = dropdown.find("input").length;
|
let total = dropdown.find("input").length;
|
||||||
|
|
||||||
counter.find(".selected_counter").html(selected);
|
counter.find(".selected_counter").html(selected);
|
||||||
counter.find(".total_counter").html(total);
|
counter.find(".total_counter").html(total);
|
||||||
|
|
||||||
var object = counter.find(".counter_object");
|
let object = counter.find(".counter_object");
|
||||||
|
|
||||||
if (total === 0) {
|
if (total === 0) {
|
||||||
object.addClass("btn-primary disabled");
|
object.addClass("btn-primary disabled");
|
||||||
@ -566,7 +566,7 @@ echo '
|
|||||||
eventAfterRender: function(event, element) {
|
eventAfterRender: function(event, element) {
|
||||||
// let event = info.event;
|
// let event = info.event;
|
||||||
// let element = $(info.el);
|
// let element = $(info.el);
|
||||||
|
|
||||||
element.find(".fc-title").html(event.title);
|
element.find(".fc-title").html(event.title);
|
||||||
let id_intervento = event.idintervento;
|
let id_intervento = event.idintervento;
|
||||||
if (globals.dashboard.tooltip == 1) {
|
if (globals.dashboard.tooltip == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user