author | williamt <williamt> | 2007-01-05 10:10:55 (UTC) |
---|---|---|
committer | williamt <williamt> | 2007-01-05 10:10:55 (UTC) |
commit | d85adfb349b3c7a988bec21fcbad86f5f98c70de (patch) (unidiff) | |
tree | b0bff7d20e03d2e4ba4bfb3309059930006ab927 /src/chrome | |
parent | c4b3096e166a0a9a60fd27c8f2dc06e688f13172 (diff) | |
download | foxri-upstream/master.zip foxri-upstream/master.tar.gz foxri-upstream/master.tar.bz2 |
* Updated for Firefox 2REL_1_1_2upstream/master
-rwxr-xr-x | src/chrome/content/foxri.xul | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/chrome/content/foxri.xul b/src/chrome/content/foxri.xul index dc1cc37..785cc0c 100755 --- a/src/chrome/content/foxri.xul +++ b/src/chrome/content/foxri.xul | |||
@@ -1,32 +1,28 @@ | |||
1 | <?xml version="1.0"?> | 1 | <?xml version="1.0"?> |
2 | <?xml-stylesheet href="foxri.css" type="text/css"?> | 2 | <?xml-stylesheet href="foxri.css" type="text/css"?> |
3 | 3 | ||
4 | 4 | ||
5 | <overlay id="foxri" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | 5 | <overlay id="foxri" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
6 | 6 | ||
7 | 7 | ||
8 | <!-- | 8 | <!-- |
9 | <script type="application/x-javascript" src="chrome://foxri/content/xrdsHandler.js"/> | 9 | <script type="application/x-javascript" src="chrome://foxri/content/xrdsHandler.js"/> |
10 | --> | 10 | --> |
11 | 11 | ||
12 | <script> | 12 | <script> |
13 | function xriFix(event) | 13 | function xriFix(event) |
14 | { | 14 | { |
15 | var txt = gURLBar.value; | 15 | var txt = gURLBar.value; |
16 | if (/^(=|@|!)\S+/.test(txt)) { | 16 | if (/^(=|@|!)\S+/.test(txt)) { |
17 | gURLBar.value = "xri://" + txt; | 17 | gURLBar.value = "xri://" + txt; |
18 | } | 18 | } |
19 | } | 19 | } |
20 | </script> | 20 | </script> |
21 | 21 | ||
22 | 22 | ||
23 | <toolbaritem id="urlbar-container"> | 23 | <textbox id="urlbar" ontextentered="xriFix(); return handleURLBarCommand(param);" /> |
24 | <textbox id="urlbar" ontextentered="xriFix(); return handleURLBarCommand(param);" /> | ||
25 | </toolbaritem> | ||
26 | 24 | ||
27 | <toolbaritem id="go-container"> | 25 | <toolbarbutton id="go-button" oncommand="xriFix(); return handleURLBarCommand(event);" /> |
28 | <toolbarbutton id="go-button" oncommand="xriFix(); return handleURLBarCommand(event);" /> | ||
29 | </toolbaritem> | ||
30 | 26 | ||
31 | </overlay> | 27 | </overlay> |
32 | 28 | ||