Fix Calendar new event opened with wrong owner

This commit is contained in:
Hadi Nategh 2014-02-18 08:51:53 +00:00
parent 60def94d07
commit 1b14b2ad31

View File

@ -449,12 +449,20 @@ app.classes.calendar = AppJS.extend(
{ {
ownerId = 'r' + ownerId; ownerId = 'r' + ownerId;
} }
that.egw.open(null, 'calendar', 'add', {
var eventInfo =
{
date: timestamp[0], date: timestamp[0],
hour: timestamp[1], hour: timestamp[1],
minute: timestamp[2], minute: timestamp[2]
owner: ownerId };
}, '_blank');
if (ownerId != 0)
{
$j(eventInfo).extend(eventInfo,{owner: ownerId});
}
that.egw.open(null, 'calendar', 'add', eventInfo , '_blank');
}); });
}, },