зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
1255cb6b13
Коммит
e0d3dda823
|
@ -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"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче