Merge pull request #351 from spacetime/develop

Added space before "target=" when added to href
This commit is contained in:
Tyler Renelle 2014-11-01 13:06:58 -06:00
commit 44aa1209cd

View file

@ -98,7 +98,7 @@
html = html.replace(userHighlight, "<u>@"+userName+"</u>");
html = html.replace(' href','target="'+linktarget+'" href');
html = html.replace(' href',' target="'+linktarget+'" href');
element.html(html);
});
}
@ -109,7 +109,7 @@
return function(input){
var html = md.toHtml(input);
html = html.replace(' href','target="_self" href');
html = html.replace(' href',' target="_self" href');
return html;
};
@ -125,4 +125,4 @@ habitrpg.directive('questRewards', ['$rootScope', function($rootScope){
scope.quest = $rootScope.Content.quests[attrs.key];
}
}
}]);
}]);