diff options
author | Doug Kearns <dougkearns@gmail.com> | 2009-03-26 01:04:02 +1100 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2009-03-26 01:04:02 +1100 |
commit | a5b6ec3478758bbed5f636c8d9d8f33638c718c6 (patch) | |
tree | 92df845eab157fb434053a0925d2ca767cfc8a82 | |
parent | 683d569eb286be62582f3f9ad149fb8f3500c74c (diff) | |
download | pentadactyl-a5b6ec3478758bbed5f636c8d9d8f33638c718c6.tar.gz |
Refactor player#togglePlayPause.
-rw-r--r-- | xulmus/TODO | 2 | ||||
-rwxr-xr-x | xulmus/content/bookmarks.js | 3 | ||||
-rwxr-xr-x | xulmus/content/player.js | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/xulmus/TODO b/xulmus/TODO index 1a85e4cd..1585a2fe 100644 --- a/xulmus/TODO +++ b/xulmus/TODO @@ -6,6 +6,8 @@ BUGS: - SB doesn't support tab-undo yet so :undo and "u" etc don't work - :tabduplicate - :back/H, :forward,L + - :open songbird-internal-search searchString + Is this workable anyway? --djk FEATURES: 9 / and ? possibly reusing "Jump to" functionality directly. diff --git a/xulmus/content/bookmarks.js b/xulmus/content/bookmarks.js index 03345b2a..9f73121f 100755 --- a/xulmus/content/bookmarks.js +++ b/xulmus/content/bookmarks.js @@ -621,7 +621,6 @@ function Bookmarks() //{{{ // did not :open <tab> once before this.getSearchEngines(); - function getShortcutOrURI(aURL, aPostDataRef) { var shortcutURL = null; @@ -689,7 +688,9 @@ function Bookmarks() //{{{ } return shortcutURL; } + url = getShortcutOrURI(searchString, aPostDataRef); + if (url == searchString) url = null; diff --git a/xulmus/content/player.js b/xulmus/content/player.js index 7e419cf6..670d93b1 100755 --- a/xulmus/content/player.js +++ b/xulmus/content/player.js @@ -365,7 +365,7 @@ function Player() // {{{ togglePlayPause: function togglePlayPause() { gSongbirdWindowController.doCommand("cmd_control_playpause"); - SBGetBrowser().mediaTab.mediaPage.highlightItem(_SBGetCurrentView().getIndexForItem(gMM.sequencer.currentItem)); + focusTrack(gMM.sequencer.currentItem); }, toggleShuffle: function toggleShuffle() |