зеркало из https://github.com/mozilla/pjs.git
98180 r/sr=sspitzer. Do not preflight the date pikcer w/ current date, if there is already an exisiting
date
This commit is contained in:
Родитель
ce50e7630f
Коммит
aca0d9328e
|
@ -424,9 +424,14 @@
|
|||
// initialize the status picker
|
||||
this.initialize(document.getAnonymousNodes(this)[2], bundle);
|
||||
|
||||
// preflight the date picker to today's date
|
||||
var datePicker = document.getAnonymousNodes(this)[3];
|
||||
var time = new Date();
|
||||
var searchAttribute = this.searchAttribute;
|
||||
var nsMsgSearchAttrib = Components.interfaces.nsMsgSearchAttrib;
|
||||
var time;
|
||||
if (searchAttribute == nsMsgSearchAttrib.Date)
|
||||
time = datePicker.value;
|
||||
else
|
||||
time = new Date();
|
||||
datePicker.setAttribute("value",convertDateToString(time));
|
||||
]]>
|
||||
</constructor>
|
||||
|
|
Загрузка…
Ссылка в новой задаче