1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:02:27 +01:00

Add a :mediaview command to change media views.

This commit is contained in:
Doug Kearns
2009-03-26 21:54:28 +11:00
parent a5b6ec3478
commit 59c1eaa4c8
3 changed files with 96 additions and 35 deletions

View File

@@ -1664,6 +1664,14 @@ function Completion() //{{{
context.completions = marks.all;
},
mediaView: function mediaView(context)
{
context.title = ["Media View", "URL"];
context.anchored = false;
context.keys = { text: "contentTitle", description: "contentUrl" };
context.completions = player.getMediaPages();
},
menuItem: function menuItem(context)
{
context.title = ["Menu Path", "Label"];