Update OL link when we find out what it is
authorMichael Ang <mang@archive.org>
Sat, 9 Oct 2010 01:06:51 +0000 (01:06 +0000)
committerMichael Ang <mang@archive.org>
Sat, 9 Oct 2010 01:06:51 +0000 (01:06 +0000)
BookReader/BookReader.js

index 5dd6895..abc931b 100644 (file)
@@ -4253,6 +4253,10 @@ BookReader.prototype.gotOpenLibraryRecord = function(self, olObject) {
             self.updateTOC(olObject['table_of_contents']);
         }
     }
+    
+    // $$$mang cleanup
+    $('#BRreturn a').attr('href', 'http://openlibrary.org' + olObject.key);
+
 }
 
 // Library functions