How to use password for event creation ,resizing and moving
7 years ago.
Hi,
I try to force users to enter password for creating, resizing and moving an event like this:
dp.onEventResize = function (args) {
$.getJSON("ps.php?id=" + args.e.id(), function(data) {
var psw = prompt("Enter password:");
if (psw != data.ps) { args.preventDefault(); }
});
};
or:
dp.onEventResize = function (args) {
$.ajax({
url: "ps.php?id=" + args.e.id(),
}) .done(function( data ) {
var psw = prompt("Enter password:");
if (psw != data.ps) { args.preventDefault(); }
});
};
but it seems that args.preventDefault() doesn't work. Any ideas?
DayPilot