From b927ddf11b5184c4a480d3a3df2886f4ea68e57f Mon Sep 17 00:00:00 2001
From: Andrew Berry <deviantintegral@gmail.com>
Date: Mon, 6 Jun 2011 16:36:11 -0400
Subject: [PATCH] Issue #1180392: Properly set the rel attribute when it is
 undefined.

---
 theme/jplayer.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/theme/jplayer.js b/theme/jplayer.js
index 955e7cd..9e092f1 100644
--- a/theme/jplayer.js
+++ b/theme/jplayer.js
@@ -24,7 +24,7 @@ Drupal.behaviors.jPlayer = function(context) {
 
       // Enable clicking links within the playlist.
       $(wrapper).find('.jp-playlist li a').each(function(n) {
-        if ($(player).attr('rel') == '') {
+        if ($(player).attr('rel') == '' || $(player).attr('rel') == undefined) {
           $(player).attr('rel', this.href);
         }
         playlist.push(this);
-- 
1.7.5.2

