diff options
author | Kshitij Parajuli <kshitijparajuli@gmail.com> | 2012-01-08 11:00:30 -0500 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2012-01-08 17:35:40 +0100 |
commit | 041e3575d157e1ac0886473c962af10726ae7e67 (patch) | |
tree | d6bf2f9b672b184c9c55a4d475db35f15051be3e | |
parent | 9e105d9bd756ef079c407772cba4d67f1a5193fe (diff) | |
download | nextcloud-server-041e3575d157e1ac0886473c962af10726ae7e67.tar.gz nextcloud-server-041e3575d157e1ac0886473c962af10726ae7e67.zip |
When a music file is playing, the page title gets modified.
-rw-r--r-- | apps/media/js/player.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/media/js/player.js b/apps/media/js/player.js index 3c022e9f8c4..1f76356fd97 100644 --- a/apps/media/js/player.js +++ b/apps/media/js/player.js @@ -93,9 +93,11 @@ var PlayList={ ended:PlayList.next, pause:function(){ localStorage.setItem(oc_current_user+'oc_playlist_playing','false'); + document.title = "ownCloud"; }, - play:function(){ + play:function(event){ localStorage.setItem(oc_current_user+'oc_playlist_playing','true'); + document.title = "\u25b8 " + event.jPlayer.status.media.name + " - " + event.jPlayer.status.media.artist + " - ownCloud"; }, supplied:type, ready:function(){ |