[XForms] accessiblity change for binding exception dialog. Bug 316609, patch by surkov, r=doronr+aaronr

This commit is contained in:
aaronr%us.ibm.com 2006-07-18 21:16:05 +00:00
Родитель 48ef21445e
Коммит d533e90ec7
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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>