зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 102762 Cancel does nothing in find dialog when no search text is provided
patch by simm0@ii.net r=hyatt sr=hewitt
This commit is contained in:
Родитель
a2750766c0
Коммит
70038689bb
|
@ -156,10 +156,9 @@
|
|||
<parameter name="aDlgType"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
var button = this.getButton("accept");
|
||||
var button = this.getButton(aDlgType);
|
||||
if (!button.disabled) {
|
||||
var noCancel = this._fireButtonEvent(aDlgType);
|
||||
|
||||
if (noCancel) {
|
||||
if (aDlgType == "accept" || aDlgType == "cancel") {
|
||||
// calling window.close() while an oncommand event
|
||||
|
|
Загрузка…
Ссылка в новой задаче