aboutsummaryrefslogtreecommitdiffstats
path: root/tinymenu.js
diff options
context:
space:
mode:
authoranekos2009-02-17 14:30:52 +0000
committeranekos2009-02-17 14:30:52 +0000
commitf79cdf401787f670a5aa401a6ccdc8b9c2865dfb (patch)
tree4578361a78b74789f6f91b4f5aee6a6915df9cb9 /tinymenu.js
parent589be6361f13024cd085168cc9e904ab99e13584 (diff)
downloadvimperator-plugins-f79cdf401787f670a5aa401a6ccdc8b9c2865dfb.tar.bz2
メニューを開くコマンドを追加
:opentinymenu git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@30198 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'tinymenu.js')
-rw-r--r--tinymenu.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/tinymenu.js b/tinymenu.js
index 89a32f3..60e7b3c 100644
--- a/tinymenu.js
+++ b/tinymenu.js
@@ -7,11 +7,15 @@ var PLUGIN_INFO =
<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/tinymenu.js</updateURL>
<author mail="hotchpotch@gmail.com" homepage="http://d.hatena.ne.jp/secondlife/">Yuichi Tateno</author>
<license>MPL 1.1/GPL 2.0/LGPL 2.1</license>
-<version>0.1</version>
+<version>0.2</version>
<detail><![CDATA[
append statusbar's menuicon like Tiny Menu [ https://addons.mozilla.org/firefox/addon/1455 ].
thx icon id:tnx.
+
+== Commands ==
+ :opentinymenu:
+ Open the tiny menu.
]]></detail>
</VimperatorPlugin>;
@@ -63,6 +67,15 @@ thx icon id:tnx.
popup.openPopup(menu, 'before_end', 0, 0, false, true);
}, false);
+ commands.addUserCommand(
+ ['opentinymenu'],
+ 'Open the tiny menu ',
+ function () {
+ popup.openPopup(menu, 'before_end', 0, 0, false, true);
+ },
+ true
+ );
+
//document.getElementById('status-bar').insertBefore(menu, document.getElementById('security-button').nextSibling);
document.getElementById('status-bar').appendChild(popup);
document.getElementById('status-bar').appendChild(menu);