Skip to content

Commit

Permalink
fix site.js
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jun 24, 2013
1 parent b76b09b commit ece91df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/js/site.js
Expand Up @@ -30,6 +30,10 @@ seajs.use(['$', 'arale/popup/1.1.0/popup', 'gallery/underscore/1.4.4/underscore'
return false
});

if ($('#sidebar-wrapper').length === 0) {
return;
}

var family = $('#sidebar-wrapper h1 sup a').html();
var name = $('#sidebar-wrapper h1 > a').html().toLowerCase();
var version = $('#sidebar-wrapper .version a').html();
Expand Down

0 comments on commit ece91df

Please sign in to comment.