bugFix #0002616 : change the behavior of ApplicationBaseURL. Now the object return a standard path(without a slash at the end of the path) That means every string added the URL ApplicationBaseURL must start with a Slash.

This commit is contained in:
Alexandre Cloutier
2014-03-04 13:23:55 -05:00
parent 31ace947cb
commit 6ad87052ba
12 changed files with 53 additions and 55 deletions

View File

@@ -347,7 +347,7 @@ function onPopupRecurrenceWindow(event) {
if (ComponentEditor.recurrenceWindow && ComponentEditor.recurrenceWindow.open && !ComponentEditor.recurrenceWindow.closed)
ComponentEditor.recurrenceWindow.focus();
else
ComponentEditor.recurrenceWindow = window.open(ApplicationBaseURL + "editRecurrence",
ComponentEditor.recurrenceWindow = window.open(ApplicationBaseURL + "/editRecurrence",
sanitizeWindowName(activeCalendar + activeComponent + "Recurrence"),
"width=500,height=400");
}
@@ -373,7 +373,7 @@ function onPopupReminderWindow(event) {
else {
var height = (emailAlarmsEnabled ? 235 : 150);
ComponentEditor.reminderWindow
= window.open(ApplicationBaseURL + "editReminder",
= window.open(ApplicationBaseURL + "/editReminder",
sanitizeWindowName(activeCalendar + activeComponent + "Reminder"),
"width=255,height=" + height);
}
@@ -400,7 +400,7 @@ function onOkButtonClick (e) {
else if (value == 3)
action = 'tentative';
else if (value == 4) {
var url = ApplicationBaseURL + activeCalendar + '/' + activeComponent;
var url = ApplicationBaseURL + "/" + activeCalendar + "/" + activeComponent;
delegateInvitation(url, modifyEventCallback);
}