Jump to content

Recommended Posts

Posted

Hi,

is it possible to tap day on a mobile device and an event will be fired.

On Desktop does work - on mobile device does not work ?

Posted
8 hours ago, ice said:

is it possible to tap day on a mobile device and an event will be fired.

On Desktop does work - on mobile device does not work ?

Hi,

Sorry for the late reply...

I will try to check it again.

Posted
On 10/7/2020 at 11:36 AM, ice said:

is it possible to tap day on a mobile device and an event will be fired.

But you can try to do this using additional code, first of all for the month view I think.

Posted
The problem is, with mobile devices does not work, with desktop work's.

How can try this using in additional code ?

Posted
8 minutes ago, ice said:

How can try this using in additional code ?

Try this code, for month view:

function afterCreate(sender) 
{
    var calendar = sender;
    calendar.element.on('tap', function(e, target, options) {
        var time = new Date();
        ajaxRequest(calendar, 'rangeselect',
            [
                'sd=' + target.getAttribute('data-date').replace(/-/gi, '') + time.getHours() + time.getMinutes() + time.getSeconds(),
                'ed=' + target.getAttribute('data-date').replace(/-/gi, '') + time.getHours() + time.getMinutes() + time.getSeconds()
            ])
    }, calendar.element, {
        delegate: '.x-calendar-weeks-cell'
    })
}

 

Posted

Thanks,

not work on a mobile device with Touch simulation (firefox or chrom)  and not work on a iPhone.


 
Posted
7 minutes ago, ice said:

not work on a mobile device

Works for me (Android, Chrome)

8 minutes ago, ice said:

with Touch simulation

What do you mean?

Posted
with firefox you can simulate mobile devices.
there is a button where you can switch the simulation of touches on and off
×
×
  • Create New...