Permalink
Browse files

Trying a more brad-like node constructor

  • Loading branch information...
1 parent 81c4979 commit 44f034fa872e7bb595b1e14e378f5cfb05c1bccb @ao5357 committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascripts/covered.js
View
@@ -1,6 +1,6 @@
$.extend({
constructDoc: function(d,facets){
- var $node = $('<div />').attr({class: 'doc ' + d.data_source, id: 'doc-' + d.id});
+ var $node = $('<div class="doc ' + d.data_source + '" id="doc-' + d.id + '"></div>');
var nodeContent = '';
nodeContent += (d.id_isbn)? '<img src="http://covers.openlibrary.org/b/isbn/' + d.id_isbn[0] + '-S.jpg" class="cover" />' : '';
if(d.content_link){nodeContent += '<a target="_blank" href="' + d.content_link[0] + '">';}

0 comments on commit 44f034f

Please sign in to comment.