mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-23 03:11:48 +02:00
only unlock, if we have a lock(-token)
This commit is contained in:
parent
5a8bc26f2d
commit
49873b317a
@ -153,10 +153,13 @@ app.classes.calendar = AppJS.extend(
|
|||||||
}
|
}
|
||||||
//send Syncronus ajax request to the server to unlock the on close entry
|
//send Syncronus ajax request to the server to unlock the on close entry
|
||||||
//set onbeforeunload with json request to send request when the window gets close by X button
|
//set onbeforeunload with json request to send request when the window gets close by X button
|
||||||
window.onbeforeunload = function () {
|
if (content.data.lock_token)
|
||||||
this.egw.json('calendar.calendar_uiforms.ajax_unlock'
|
{
|
||||||
, [content.data['id'],content.data['lock_token']],null,true,null,null).sendRequest(true);
|
window.onbeforeunload = function () {
|
||||||
};
|
this.egw.json('calendar.calendar_uiforms.ajax_unlock',
|
||||||
|
[content.data.id, content.data.lock_token],null,true,null,null).sendRequest(true);
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.alarm_custom_date();
|
this.alarm_custom_date();
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user