From 7e18a232965d723db1b6eae06dbc19c692759c9c Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Thu, 10 Oct 2013 13:32:29 -0600 Subject: [PATCH] fix mypkg_p --- .../meta/pkg-index/official/static/index.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 0465f9c108..aae8144b81 100644 --- a/pkgs/plt-services/meta/pkg-index/official/static/index.js +++ b/pkgs/plt-services/meta/pkg-index/official/static/index.js @@ -39,9 +39,14 @@ $( document ).ready(function() { console.log( pkgi ); change_hash( "[" + pkgi['name'] + "]" ); + var mypkg_p = ($.inArray(me(), pkgi['authors'] ) != -1); + // xxx allow editing of stuff $( "#pi_name" ).text( pkgi['name'] ); + if ( mypkg_p ) { + $( "#pi_name" ).append( $('