bug 354845 - Removes unneeded cruft from timezone picker that broke it after changes were made in XUL's menulist. Patch by mvl, r=ctalbert,lilmatt

This commit is contained in:
mattwillis%gmail.com 2006-10-27 02:44:34 +00:00
Родитель 1255cb6b13
Коммит e0d3dda823
2 изменённых файлов: 1 добавлений и 20 удалений

Просмотреть файл

@ -47,21 +47,5 @@ var gTimezonesPane = {
prefValue = calendarDefaultTimezone();
tzMenuList.value = prefValue;
}
},
getTimezoneResult: function() {
var tzMenuList = document.getElementById("calendar.timezone.menulist");
if (tzMenuList.selectedItem != null) {
var value = tzMenuList.value
return value;
}
return undefined;
},
setTimezone: function() {
var prefValue = document.getElementById("calendar.timezone.local").value;
var tzMenuList = document.getElementById("calendar.timezone.menulist");
prefValue = tzMenuList.value;
}
};

Просмотреть файл

@ -66,10 +66,7 @@
<caption label="&pref.calendar.timezones.list.caption;"/>
<menulist id="calendar.timezone.menulist"
preference="calendar.timezone.local"
onselect="document.getElementById('paneTimezones').userChangedValue(event.target);"
onsynctopreference="return gTimezonesPane.getTimezoneResult();"
onsyncfrompreference="gTimezonesPane.setTimezone();">
preference="calendar.timezone.local">
<menupopup>
<menuitem label="&pref.timezone.Africa.Abidjan;"
value="/mozilla.org/20050126_1/Africa/Abidjan"/>