Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Trying a more brad-like node constructor

  • Loading branch information...
commit 44f034fa872e7bb595b1e14e378f5cfb05c1bccb 1 parent 81c4979
@ao5357 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  javascripts/covered.js
View
2  javascripts/covered.js
@@ -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] + '">';}
Please sign in to comment.
Something went wrong with that request. Please try again.