fixing 284078. patch from jt@nerant.org. r=pavlov

This commit is contained in:
pavlov%pavlov.net 2005-03-03 21:45:07 +00:00
parent c4d498d291
commit 03746f545d
2 changed files with 7 additions and 5 deletions

View File

@ -1646,17 +1646,19 @@ function calendarDefaultTimezone() {
function doCreateWizardFinish()
{
var name = document.getElementById("calendar-name").value;
var cal_name = document.getElementById("calendar-name").value;
var uri = document.getElementById("calendar-uri").value;
var type = document.getElementById("initial-radiogroup").value;
var sel_item=document.getElementById("initial-radiogroup").selectedItem;
var type = sel_item.value;
dump(name + "\n");
dump(cal_name + "\n");
dump(uri + "\n");
dump(type + "\n");
var calManager = getCalendarManager();
try {
var newCalendar = calManager.createCalendar(name, type, makeURL(uri));
var newCalendar = calManager.createCalendar(cal_name, type, makeURL(uri));
} catch (ex) {
dump(ex);
return false;

View File

@ -20,7 +20,7 @@
<hbox><label value="name:"/><textbox id="calendar-name"/></hbox>
<hbox><label value="uri:"/><textbox id="calendar-uri"/></hbox>
<radiogroup id="initial-radiogroup">
<radio value="local"
<radio value="storage"
label="Local Calendar"
selected="true"/>
<radio value="ics"