mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-25 00:48:53 -05:00
Fix delicious widget js error
JS error occured when there's no tags on bookmarks Check if it's an empty string before join item[i].t
This commit is contained in:
parent
ce0d25100b
commit
a5a16b4039
@ -110,7 +110,7 @@ function wrapFlashVideos() {
|
|||||||
function renderDeliciousLinks(items) {
|
function renderDeliciousLinks(items) {
|
||||||
var output = "<ul>";
|
var output = "<ul>";
|
||||||
for (var i=0,l=items.length; i<l; i++) {
|
for (var i=0,l=items.length; i<l; i++) {
|
||||||
output += '<li><a href="' + items[i].u + '" title="Tags: ' + items[i].t.join(', ') + '">' + items[i].d + '</a></li>';
|
output += '<li><a href="' + items[i].u + '" title="Tags: ' + (items[i].t == "" ? "" : items[i].t.join(', ')) + '">' + items[i].d + '</a></li>';
|
||||||
}
|
}
|
||||||
output += "</ul>";
|
output += "</ul>";
|
||||||
$('#delicious').html(output);
|
$('#delicious').html(output);
|
||||||
|
Loading…
Reference in New Issue
Block a user