From 6728483c60a394ec3e570a2dce47c41b55ec86f0 Mon Sep 17 00:00:00 2001
From: "Robert J. Newmark" <newmark@L3Jane.local>
Date: Sat, 24 Sep 2011 21:29:08 +0100
Subject: [PATCH] changed wikipedia and google button to a instead of div

---
 server/djrandom/frontend/static/js/djr/player.js | 4 ++--
 server/djrandom/frontend/templates/index.html    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/djrandom/frontend/static/js/djr/player.js b/server/djrandom/frontend/static/js/djr/player.js
index 6900a12..fc5d201 100644
--- a/server/djrandom/frontend/static/js/djr/player.js
+++ b/server/djrandom/frontend/static/js/djr/player.js
@@ -310,7 +310,7 @@ djr.init = function () {
     djr.state.player.mostPlayedPlaylist(25);
   });
 
-  $('#wikiDiv').click(function () {
+  $('#wikibtn').click(function () {
     var stitle = $('#song_' + djr.state.player.cur_song + ' .title').text();
     if ( $('#wikipedia').display == 'none' ) {
       if ( stitle != "" ) { 
@@ -323,7 +323,7 @@ djr.init = function () {
         $('#wikipedia').attr('display', 'none' );
     }
   });
-  $('#googleDiv').click(function () {
+  $('#googlebtn').click(function () {
     var stitle = $('#song_' + djr.state.player.cur_song + ' .title').text();
     if ( $('#google').display == 'none' ) {
       if ( stitle != "" ) { 
diff --git a/server/djrandom/frontend/templates/index.html b/server/djrandom/frontend/templates/index.html
index 024daa9..1f03627 100644
--- a/server/djrandom/frontend/templates/index.html
+++ b/server/djrandom/frontend/templates/index.html
@@ -75,13 +75,13 @@ DJ:Random
       </div>
       <div id="jp_info" class="jp_info" >
         <div id="wikiDiv" class="song" >
-          <div id="wikibtn" >Wikipedia Info</div>
+          <a id="wikibtn">Wikipedia Info</a>
           <iframe id="wikipedia" width="100%" height="300" style="display: none" >
             <p>Your browser does not support iframes.</p>
           </iframe>
         </div>
         <div id="googleDiv" class="song" >
-          <div id="googlebtn" >Google Info</div>
+          <a id="googlebtn">Google Info</a>
           <iframe id="google" width="100%" height="300" style="display: none" >
             <p>Your browser does not support iframes.</p>
           </iframe>
-- 
GitLab