Calendar visualization : ReadOnly mode allow double clic

titoftit

New Member
Hi,

When Read Only mode is set to on, I can double clic on calendar, and open popup details with Save button.

The problem seems to come from this line in the file calendar.js (and calendar-min.js), function openAddEvent :

Code:
if (this.options.canAdd === false)

if I replace with :

Code:
if (this.options.canAdd == false)

it's works great.

Because, when Read only mode is false, canAdd is equal to true, but when Read only mode is true, canAdd is equal to "0", and === operator do not type conversion.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top