Bug #386558 - change event fired without date actually having changed, patch=giermann@funke.de, r=mickey
git-svn-id: svn://10.0.0.236/trunk@231300 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
07829e4d0d
commit
049d7780d9
@ -333,9 +333,15 @@
|
||||
|
||||
if (formattedValue) {
|
||||
// format succeeded, safe to set value
|
||||
var dateChanged = true;
|
||||
if (this.mValue != null) {
|
||||
dateChanged = (this.mValue.getDate() != aValue.getDate()) ||
|
||||
(this.mValue.getMonth() != aValue.getMonth()) ||
|
||||
(this.mValue.getFullYear() != aValue.getFullYear());
|
||||
}
|
||||
this.mValue = aValue;
|
||||
this.kTextBox.value = formattedValue;
|
||||
if (aRefresh) {
|
||||
if (aRefresh && dateChanged) {
|
||||
this.fireEvent("change");
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user