diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index e84242e10..71641b49e 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -18,7 +18,7 @@ function newEvent(sender) { + "&hm=" + hour); window.open(urlstr, "", - "width=560,height=170,resizable=1,scrollbars=1,toolbar=0," + + "width=570,height=200,resizable=0,scrollbars=0,toolbar=0," + "location=0,directories=0,status=0,menubar=0,copyhistory=0"); return false; /* stop following the link */ @@ -28,7 +28,7 @@ function _editEventId(id) { var urlstr = ApplicationBaseURL + id + "/edit"; var win = window.open(urlstr, "SOGo_edit_" + id, - "width=560,height=170,resizable=1,scrollbars=1,toolbar=0," + + "width=570,height=200,resizable=0,scrollbars=0,toolbar=0," + "location=0,directories=0,status=0,menubar=0,copyhistory=0"); win.focus(); } diff --git a/UI/WebServerResources/UIxAppointmentEditor.js b/UI/WebServerResources/UIxAppointmentEditor.js index 49b2e57f6..12325390f 100644 --- a/UI/WebServerResources/UIxAppointmentEditor.js +++ b/UI/WebServerResources/UIxAppointmentEditor.js @@ -101,8 +101,8 @@ function validateAptEditor() { function submitMeeting(thisForm) { var action = document.getElementById('jsaction'); - action.setAttribute("name", "save:method"); - action.setAttribute("value", "save"); +// action.setAttribute("name", "save:method"); +// action.setAttribute("value", "save"); window.opener.log ("form: " + thisForm); @@ -120,24 +120,16 @@ function submitMeeting(thisForm) { function toggleDetails() { var div = $("details"); - - var buttonsDiv = $("buttons"); - var wHeight = 0; - if (!window._fullHeight) { - var minHeight = (buttonsDiv.offsetTop + 2 * buttonsDiv.clientHeight); - window._fullHeight = minHeight + div.clientHeight; - window._hiddenHeight = minHeight; - } + var buttons = $("buttons"); + var buttonsHeight = buttons.clientHeight * 3; if (div.style.visibility) { div.style.visibility = null; - buttonsDiv.top = (window._hiddenHeight + buttonsDiv.clientHeight) + 'px;'; - window.resizeTo(document.body.clientWidth, window._hiddenHeight); + window.resizeBy(0, -(div.clientHeight + buttonsHeight)); $("detailsButton").innerHTML = labels["Show Details"]; } else { div.style.visibility = 'visible;'; - buttonsDiv.top = null; - window.resizeTo(document.body.clientWidth, window._fullHeight); + window.resizeBy(0, (div.clientHeight + buttonsHeight)); $("detailsButton").innerHTML = labels["Hide Details"]; }