Enlarge size of event/task editor window

Fixes #3381
pull/187/head
Francis Lachapelle 2015-11-23 13:29:02 -05:00
parent 01642eca3e
commit f42d6f5f4a
1 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,9 @@ var calendarsOfEventsToDelete = [];
var usersRightsWindowHeight = 215;
var usersRightsWindowWidth = 502;
var componentWindowHeight = 500;
var componentWindowWidth = 520;
var calendarEvents = null;
var preventAutoScroll = false;
@ -89,7 +92,7 @@ function newEvent(type, day, hour, duration) {
if (params.length > 0)
urlstr += "?" + params.join("&");
window.open(urlstr, "", "width=490,height=470,resizable=0");
window.open(urlstr, "", "width=" + componentWindowWidth + ",height=" + componentWindowHeight + ",resizable=0");
return false; /* stop following the link */
}
@ -228,7 +231,7 @@ function _editEventId(id, calendar, recurrence) {
}
urlstr += "/edit";
var win = window.open(urlstr, "_blank",
"width=490,height=470,resizable=0");
"width=" + componentWindowWidth + ",height=" + componentWindowHeight + ",resizable=0");
if (win)
win.focus();
}