blob: dc1cc374acfffb284b9258d5c5eb7330a72cb18f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?xml version="1.0"?>
<?xml-stylesheet href="foxri.css" type="text/css"?>
<overlay id="foxri" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!--
<script type="application/x-javascript" src="chrome://foxri/content/xrdsHandler.js"/>
-->
<script>
function xriFix(event)
{
var txt = gURLBar.value;
if (/^(=|@|!)\S+/.test(txt)) {
gURLBar.value = "xri://" + txt;
}
}
</script>
<toolbaritem id="urlbar-container">
<textbox id="urlbar" ontextentered="xriFix(); return handleURLBarCommand(param);" />
</toolbaritem>
<toolbaritem id="go-container">
<toolbarbutton id="go-button" oncommand="xriFix(); return handleURLBarCommand(event);" />
</toolbaritem>
</overlay>
|