зеркало из https://github.com/mozilla/pjs.git
[XForms] accessiblity change for binding exception dialog. Bug 316609, patch by surkov, r=doronr+aaronr
This commit is contained in:
Родитель
80b6ca41a2
Коммит
51dd9205e4
|
@ -46,18 +46,19 @@
|
|||
onload="document.documentElement.getButton('accept').focus();">
|
||||
|
||||
<script type="application/x-javascript">
|
||||
function toJSConsole() {
|
||||
function openJSConsole() {
|
||||
var js = Components.classes["@mozilla.org/appshell/window-mediator;1"]
|
||||
.getService(Components.interfaces.nsIWindowMediator)
|
||||
.getMostRecentWindow('global:console');
|
||||
if (js)
|
||||
if (js) {
|
||||
js.focus();
|
||||
else
|
||||
} else {
|
||||
Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
|
||||
.getService(Components.interfaces.nsIWindowWatcher)
|
||||
.openWindow(null, "chrome://global/content/console.xul",
|
||||
"", "all,dialog=no", null);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<hbox flex="1">
|
||||
|
@ -69,7 +70,7 @@
|
|||
<description class="header descr1">
|
||||
&xforms.bindingdialog.description1;
|
||||
</description>
|
||||
<label class="descr2 text-link" onclick="toJSConsole()">
|
||||
<label class="descr2 text-link" onclick="openJSConsole()">
|
||||
&xforms.bindingdialog.description2;
|
||||
</label>
|
||||
</vbox>
|
||||
|
|
Загрузка…
Ссылка в новой задаче