зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1209766 - Update validation message before showing notification. r=khuey
This commit is contained in:
Родитель
9b0ebddb01
Коммит
b73b8123c3
|
@ -118,6 +118,9 @@ FormSubmitObserver.prototype =
|
|||
return;
|
||||
}
|
||||
|
||||
// Update validation message before showing notification
|
||||
this._validationMessage = element.validationMessage;
|
||||
|
||||
// Don't connect up to the same element more than once.
|
||||
if (this._element == element) {
|
||||
this._showPopup(element);
|
||||
|
@ -127,8 +130,6 @@ FormSubmitObserver.prototype =
|
|||
|
||||
element.focus();
|
||||
|
||||
this._validationMessage = element.validationMessage;
|
||||
|
||||
// Watch for input changes which may change the validation message.
|
||||
element.addEventListener("input", this, false);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче