Browse Source

Trim media links before comparing them with hrefs.

Ralfp 12 years ago
parent
commit
c9831c60db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/cranefly/js/cranefly.js

+ 1 - 1
static/cranefly/js/cranefly.js

@@ -74,7 +74,7 @@ $(function () {
 	// Automagically turn links into players
 	var players = new Array();
 	$('.markdown a').each(function() {
-		if (this.href == $(this).text()) {
+		if (this.href == $.trim($(this).text())) {
 			match = link2player(this);
 			if (match && $.inArray(match, players) == -1) {
 				players.push(match);