зеркало из https://github.com/mozilla/pjs.git
Adding new openLocation dialog that was not updated
before
This commit is contained in:
Родитель
91291df7d4
Коммит
913bc2cec3
|
@ -1,93 +1,50 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome:/global/skin/xul.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
<!DOCTYPE window>
|
||||
<!-- padding 0px is just a workaround for windows not displaying paddings correctly
|
||||
take it out once this works! -->
|
||||
|
||||
<window xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
<window style=" padding: 0px; width: 100%; height: 100%"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
title="Open File or Location"
|
||||
onload="onLoad()"
|
||||
title="Open Location"
|
||||
width="420"
|
||||
height="190">
|
||||
class="dialog">
|
||||
|
||||
<html:script language="javascript" src="openLocation.js">
|
||||
</html:script>
|
||||
<html:script language="javascript" src="openLocation.js"/>
|
||||
|
||||
<!--
|
||||
<box align="vertical">
|
||||
<box align="horizontal">
|
||||
Enter the World Wide Web location (URL) you would like to open. Use
|
||||
the Choose File... button to select a local file:
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<box align="horizontal" flex="100">
|
||||
<html:input id="dialog.input"/>
|
||||
</box>
|
||||
<box align="horizontal">
|
||||
<html:button onclick="choose()">Select File...</html:button>
|
||||
</box>
|
||||
</box>
|
||||
<box align="horizontal" flex="100">
|
||||
<box flex="100">
|
||||
<html:input id="dialog.newWindow" type="checkbox"/>Open in new window
|
||||
</box>
|
||||
<box>
|
||||
<html:button id="dialog.ok" onclick="open()">Open</html:button>
|
||||
</box>
|
||||
<box>
|
||||
<html:button id="dialog.cancel" onclick="cancel()">Cancel</html:button>
|
||||
</box>
|
||||
<box>
|
||||
<html:button id="dialog.help" onclick="help()" disabled="">Help</html:button>
|
||||
</box>
|
||||
</box>
|
||||
</box>
|
||||
-->
|
||||
<html:center>
|
||||
<html:p/>
|
||||
<html:table width="400" cellspacing="5">
|
||||
<html:tr>
|
||||
<html:td>
|
||||
Enter the World Wide Web location (URL) you would like to open. Use
|
||||
the Choose File... button to select a local file:
|
||||
</html:td>
|
||||
</html:tr>
|
||||
<html:tr>
|
||||
<html:td>
|
||||
<html:table cellspacing="5">
|
||||
<html:tr>
|
||||
<html:td width="275">
|
||||
<html:input id="dialog.input" style="width:275;" onkeyup="onTyping(event.which)"/>
|
||||
</html:td>
|
||||
<html:td width="100">
|
||||
<html:button onclick="choose()">Select File...</html:button>
|
||||
</html:td>
|
||||
</html:tr>
|
||||
</html:table>
|
||||
</html:td>
|
||||
</html:tr>
|
||||
<html:tr>
|
||||
<html:td>
|
||||
<html:table cellspacing="5">
|
||||
<html:tr>
|
||||
<html:td width="165">
|
||||
<html:input id="dialog.newWindow" type="checkbox"/>Open in new window
|
||||
</html:td>
|
||||
<html:td width="70">
|
||||
<html:button id="dialog.ok" onclick="open()" disabled="">Open</html:button>
|
||||
</html:td>
|
||||
<html:td width="70">
|
||||
<html:button id="dialog.cancel" onclick="cancel()">Cancel</html:button>
|
||||
</html:td>
|
||||
<html:td width="70">
|
||||
<html:button id="dialog.help" onclick="help()" disabled="">Help</html:button>
|
||||
</html:td>
|
||||
</html:tr>
|
||||
</html:table>
|
||||
</html:td>
|
||||
</html:tr>
|
||||
</html:table>
|
||||
<html:p/>
|
||||
</html:center>
|
||||
<box align="horizontal" flex="100%" style="width:30em;">
|
||||
|
||||
</window>
|
||||
<html:div style="width: 45px; margin: 5px;">
|
||||
<html:img src="chrome://navigator/skin/questionl.gif" width="32" height="32" border="0"/>
|
||||
</html:div>
|
||||
<box align="vertical" flex="100%" style="height: 100%;">
|
||||
|
||||
<html:div style="width: 100%;">Enter the World Wide Web location (URL) you would like to open or </html:div><html:div style="width: 100%; margin-bottom: 0.5em;">use the Choose File... button to select a local file:</html:div>
|
||||
|
||||
<box align="horizontal">
|
||||
<html:input id="dialog.input" flex="100%" onkeyup="onTyping(event.which)"/>
|
||||
<titledbutton onclick="choose()" value="Choose File..." align="left"/>
|
||||
</box>
|
||||
|
||||
<box align="horizontal" style="margin-bottom: 1em;"> <html:input type="checkbox" id="dialog.newWindow"/>
|
||||
<html:label for="dialog.newWindow">Open in new window</html:label>
|
||||
<spring flex="100%"/>
|
||||
</box>
|
||||
|
||||
<spring flex="100%"/>
|
||||
|
||||
<box align="horizontal">
|
||||
<spring flex="100%"/>
|
||||
<titledbutton id="dialog.ok" value="OK" onclick="open()" align="left"/>
|
||||
<titledbutton id="dialog.cancel" value="Cancel" onclick="cancel()" align="left"/>
|
||||
<spring flex="100%"/>
|
||||
</box>
|
||||
|
||||
</box>
|
||||
|
||||
</box>
|
||||
|
||||
|
||||
</window>
|
Загрузка…
Ссылка в новой задаче