зеркало из https://github.com/mozilla/gecko-dev.git
Adding file for chrome
This commit is contained in:
Родитель
29480146f8
Коммит
a3825da6dd
|
@ -0,0 +1,83 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="xul.css" type="text/css"?>
|
||||
|
||||
<window xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
>
|
||||
<data>
|
||||
<broadcaster id="NetDialog:Message"/>
|
||||
<broadcaster id="NetDialog:CheckMessage"/>
|
||||
</data>
|
||||
<dialog>
|
||||
<observes element="NetDialog:Message" attribute="text" onchange="onUpdate()"/>
|
||||
<observes element="NetDialog:CheckMessage" attribute="text" onchange="onUpdate()"/>
|
||||
</dialog>
|
||||
|
||||
<html:script>
|
||||
function onUpdate()
|
||||
{
|
||||
dump("onUpate \n");
|
||||
var msg = document.getElementById("NetDialog:Message");
|
||||
if ( msg)
|
||||
{
|
||||
var text = msg.getAttribute("text");
|
||||
dump( text +"\n" );
|
||||
var prompt = (document.getElementById("message"));
|
||||
if ( prompt )
|
||||
{
|
||||
dump(" setting message \n" );
|
||||
prompt.childNodes[0].nodeValue = text;
|
||||
}
|
||||
}
|
||||
|
||||
var msg = document.getElementById("NetDialog:CheckMessage");
|
||||
if ( msg)
|
||||
{
|
||||
var text = msg.getAttribute("text");
|
||||
dump( text +"\n" );
|
||||
var prompt = (document.getElementById("checkboxLabel"));
|
||||
if ( prompt )
|
||||
{
|
||||
dump(" setting message \n" );
|
||||
prompt.childNodes[1].nodeValue = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
</html:script>
|
||||
|
||||
|
||||
|
||||
<html:table>
|
||||
<html:tr >
|
||||
<html:td>
|
||||
<html:img html:src="resource:/res/samples/questionl.gif"></html:img>
|
||||
</html:td>
|
||||
|
||||
<html:td>
|
||||
<html:span id="message">m</html:span>
|
||||
</html:td>
|
||||
|
||||
|
||||
</html:tr>
|
||||
|
||||
|
||||
<html:tr>
|
||||
<html:td>
|
||||
<html:label id="checkboxLabel">
|
||||
<html:input type="checkbox" id="checkbox"/>
|
||||
Backwards
|
||||
</html:label>
|
||||
</html:td>
|
||||
<html:td>
|
||||
</html:td>
|
||||
</html:tr>
|
||||
|
||||
<html:tr>
|
||||
<html:td>
|
||||
</html:td>
|
||||
<html:td html:align="justify">
|
||||
<html:button id ="CancelButton"> Cancel </html:button>
|
||||
<html:button id="OKButton"> OK </html:button> </html:td>
|
||||
</html:tr>
|
||||
</html:table>
|
||||
</window>
|
Загрузка…
Ссылка в новой задаче