Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

Commit

Permalink
Don't show 'undefined' links
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Oct 26, 2011
1 parent a287ab4 commit fb68db2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions injector.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ function doReplace() {
} }


function appendLinks(element, data, lang) { function appendLinks(element, data, lang) {
if(!data) {
return;
}
var dataAttrib = "data-wiki-" + lang; var dataAttrib = "data-wiki-" + lang;
if (! $(element).attr(dataAttrib)) { if (! $(element).attr(dataAttrib)) {
$(element).attr(dataAttrib, 'data'); $(element).attr(dataAttrib, 'data');
Expand Down

0 comments on commit fb68db2

Please sign in to comment.