diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.js b/pkgs/plt-services/meta/pkg-index/official/static/index.js index 3d64f98a9c..0303c64968 100644 --- a/pkgs/plt-services/meta/pkg-index/official/static/index.js +++ b/pkgs/plt-services/meta/pkg-index/official/static/index.js @@ -11,6 +11,9 @@ function me () { $( document ).ready(function() { var logged_in = false; + function spanText ( text ) { + return $('', { text: text }); } + function jslink ( texts, clickf) { return $('', { href: "javascript:void(0)", click: clickf } ).html(texts); } @@ -86,10 +89,10 @@ $( document ).ready(function() { .append( $.map( pkgi['authors'], function ( author, i ) { if ( mypkg_p && author != me() ) { - return [ author, jslink( "[x]", function () { submit_remove_author(author); }), + return [ spanText(author), jslink( "[x]", function () { submit_remove_author(author); }), " "]; } else { - return [author, " "]; }} ) ); + return [ spanText(author), " "]; }} ) ); if ( mypkg_p ) { $( "#pi_add_author_row" ).show(); } else {