aboutsummaryrefslogtreecommitdiffstats
path: root/ubiquityNeta.js
diff options
context:
space:
mode:
authordrry2008-09-05 16:31:27 +0000
committerdrry2008-09-05 16:31:27 +0000
commitf4d47f6d977d3ab64187a9e7788711cad2971dcf (patch)
tree7d5cf1a177624bfc0334d2d79f05994bf21f2a41 /ubiquityNeta.js
parent44e2865552a4577d13db449025323db91da58125 (diff)
downloadvimperator-plugins-f4d47f6d977d3ab64187a9e7788711cad2971dcf.tar.bz2
* (whitespace changes)
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@18904 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'ubiquityNeta.js')
-rw-r--r--ubiquityNeta.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/ubiquityNeta.js b/ubiquityNeta.js
index 4b95556..5f8f341 100644
--- a/ubiquityNeta.js
+++ b/ubiquityNeta.js
@@ -1,26 +1,26 @@
-// Vimperator plugin: ubiquity
+// Vimperator plugin: Ubiquity
// Maintainer: mattn <mattn.jp@gmail.com> - http://mattn.kaoriya.net
// Require: Ubiquity - https://wiki.mozilla.org/Labs/Ubiquity
// Usage:
-// :ubiquity command... - show ubiquity's command dialog.
-// :ubiquity! command... - run ubiquity's command.
+// :ubiquity command... - show Ubiquity's command dialog.
+// :ubiquity! command... - run Ubiquity's command.
(function() {
if (typeof gUbiquity === 'undefined') return;
- liberator.commands.addUserCommand(["ubiquity"], "Ubiquity",
- function(arg, special){
- var anchor = document.getElementById("content");
- if (window.location == "chrome://browser/content/browser.xul")
- anchor = anchor.selectedBrowser;
- gUbiquity.openWindow(anchor);
- gUbiquity.__textBox.value = arg||'';
- var context = gUbiquity.__makeContext();
- var previewBlock = document.getElementById("cmd-preview").contentDocument.getElementById("preview");
- gUbiquity.__cmdManager.updateInput(arg||'', context, previewBlock);
- if (special) {
- gUbiquity.__cmdManager.execute(context);
- gUbiquity.closeWindow();
- }
- },
- { });
+ liberator.commands.addUserCommand(["ubiquity"], "Ubiquity",
+ function(arg, special){
+ var anchor = document.getElementById("content");
+ if (window.location == "chrome://browser/content/browser.xul")
+ anchor = anchor.selectedBrowser;
+ gUbiquity.openWindow(anchor);
+ gUbiquity.__textBox.value = arg||'';
+ var context = gUbiquity.__makeContext();
+ var previewBlock = document.getElementById("cmd-preview").contentDocument.getElementById("preview");
+ gUbiquity.__cmdManager.updateInput(arg||'', context, previewBlock);
+ if (special) {
+ gUbiquity.__cmdManager.execute(context);
+ gUbiquity.closeWindow();
+ }
+ },
+ { });
})();