aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source
diff options
context:
space:
mode:
authorhSATAC <hsatac@gmail.com>2011-12-21 10:53:32 +0800
committerhSATAC <hsatac@gmail.com>2011-12-21 10:53:32 +0800
commita5a16b4039b5733cd751b0463310c883c6b08f10 (patch)
treec26361138171bace679ed9742efd179deb57daae /.themes/classic/source
parentce0d25100bc3354f2a6e0c758443178b0fa47bb9 (diff)
downloadmy_new_personal_website-a5a16b4039b5733cd751b0463310c883c6b08f10.tar.xz
my_new_personal_website-a5a16b4039b5733cd751b0463310c883c6b08f10.zip
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
Diffstat (limited to '')
-rw-r--r--.themes/classic/source/javascripts/octopress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js
index c0b53cf2..379e6630 100644
--- a/.themes/classic/source/javascripts/octopress.js
+++ b/.themes/classic/source/javascripts/octopress.js
@@ -110,7 +110,7 @@ function wrapFlashVideos() {
function renderDeliciousLinks(items) {
var output = "<ul>";
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>";
$('#delicious').html(output);