mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-08 23:58:42 +01:00
Miglioramento prestazioni tooltip calendario
This commit is contained in:
parent
bcf29081fe
commit
8135b53146
@ -674,37 +674,43 @@ if (Modules::getPermission('Interventi') == 'rw') {
|
|||||||
?>
|
?>
|
||||||
eventAfterRender: function(event, element) {
|
eventAfterRender: function(event, element) {
|
||||||
element.find('.fc-title').html(event.title);
|
element.find('.fc-title').html(event.title);
|
||||||
|
element.data('idintervento', event.idintervento);
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (setting('Utilizzare i tooltip sul calendario') == '1') {
|
if (setting('Utilizzare i tooltip sul calendario') == '1') {
|
||||||
?>
|
?>
|
||||||
$.get(globals.rootdir + "/modules/dashboard/actions.php?op=get_more_info&id="+event.idintervento+"&timeStart="+moment(event.start).format("YYYY-MM-DD HH:mm")+"&timeEnd="+moment(event.end).format("YYYY-MM-DD HH:mm"), function(data,response){
|
element.mouseover( function(){
|
||||||
if( response=="success" ){
|
if( !element.hasClass('tooltipstered') ){
|
||||||
data = $.trim(data);
|
$(this).data('idintervento', event.idintervento );
|
||||||
if( data!="ok" ){
|
|
||||||
element.tooltipster({
|
$.get(globals.rootdir + "/modules/dashboard/actions.php?op=get_more_info&id="+$(this).data('idintervento'), function(data,response){
|
||||||
content: data,
|
if( response=="success" ){
|
||||||
animation: 'grow',
|
data = $.trim(data);
|
||||||
contentAsHTML: true,
|
if( data!="ok" ){
|
||||||
hideOnClick: true,
|
element.tooltipster({
|
||||||
onlyOne: true,
|
content: data,
|
||||||
speed: 200,
|
animation: 'grow',
|
||||||
delay: 100,
|
contentAsHTML: true,
|
||||||
maxWidth: 400,
|
hideOnClick: true,
|
||||||
theme: 'tooltipster-shadow',
|
onlyOne: true,
|
||||||
touchDevices: true,
|
speed: 200,
|
||||||
trigger: 'hover',
|
delay: 100,
|
||||||
position: 'left'
|
maxWidth: 400,
|
||||||
});
|
theme: 'tooltipster-shadow',
|
||||||
|
touchDevices: true,
|
||||||
|
trigger: 'hover',
|
||||||
|
position: 'left'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
$('#calendar').fullCalendar('option', 'contentHeight', 'auto');
|
||||||
else{
|
}
|
||||||
return false;
|
});
|
||||||
}
|
|
||||||
|
|
||||||
$('#calendar').fullCalendar('option', 'contentHeight', 'auto');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user