Skip to content
Browse files

Add in changes from @etano for googlereader + extra service URLS & ma…

…ke some modifications to that code
  • Loading branch information...
1 parent 452ae24 commit 110aaee0d0447350047abb627bc91df32d678aec @christianvuerings christianvuerings committed Sep 19, 2011
Showing with 7 additions and 16 deletions.
  1. +6 −15 src/core.js
  2. +1 −1 src/services/lastfm.js
View
21 src/core.js
@@ -83,21 +83,12 @@
for ( ; i < length; i++ ) {
item = items[i];
if ( item.html ) {
- if ( item.url ) {
- $('<li class="'+ settings.classname + '-'
- + item.config.service + '">').data( "name", item.config.service )
- .data( "url", item.url )
- .data( "time", item.date )
- .append( item.html )
- .appendTo( ul );
- } else {
- $('<li class="'+ settings.classname + '-'
- + item.config.service + '">').data( "name", item.config.service )
- .data( "url", "#" )
- .data( "time", item.date )
- .append( item.html )
- .appendTo( ul );
- }
+ $('<li class="'+ settings.classname + '-'
+ + item.config.service + '">').data( "name", item.config.service )
+ .data( "url", item.url || "#" )
+ .data( "time", item.date )
+ .append( item.html )
+ .appendTo( ul );
}
}
View
2 src/services/lastfm.js
@@ -21,7 +21,7 @@ $.fn.lifestream.feeds.lastfm = function( config, callback ) {
output.push({
date: new Date(parseInt((item.date.uts * 1000), 10)),
config: config,
- html: $.tmpl( template.loved, item ),
+ html: $.tmpl( template.loved, item )
});
}
}

0 comments on commit 110aaee

Please sign in to comment.
Something went wrong with that request. Please try again.