mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 10:09:10 +01:00
only unlock, if we have a lock(-token)
This commit is contained in:
parent
ea114fe1b7
commit
1b8194a8d3
@ -110,11 +110,14 @@ app.classes.calendar = AppJS.extend(
|
||||
}
|
||||
//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
|
||||
if (content.data.lock_token)
|
||||
{
|
||||
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.egw.json('calendar.calendar_uiforms.ajax_unlock',
|
||||
[content.data.id, content.data.lock_token],null,true,null,null).sendRequest(true);
|
||||
};
|
||||
}
|
||||
}
|
||||
this.alarm_custom_date();
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user