mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
fixing 284078. patch from jt@nerant.org. r=pavlov
This commit is contained in:
parent
c4d498d291
commit
03746f545d
@ -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;
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user