From f4d47f6d977d3ab64187a9e7788711cad2971dcf Mon Sep 17 00:00:00 2001 From: drry Date: Fri, 5 Sep 2008 16:31:27 +0000 Subject: * (whitespace changes) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@18904 d0d07461-0603-4401-acd4-de1884942a52 --- ubiquityNeta.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'ubiquityNeta.js') 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 - 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(); + } + }, + { }); })(); -- cgit v1.2.3