From 2bae74fd8cc0a98e4f53c2ee36aa29d17cfad039 Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Mon, 14 Oct 2013 14:33:03 -0600 Subject: [PATCH] Showing checksum error --- pkgs/plt-services/meta/pkg-index/official/static/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 b6a33d10c0..c237dbccef 100644 --- a/pkgs/plt-services/meta/pkg-index/official/static/index.js +++ b/pkgs/plt-services/meta/pkg-index/official/static/index.js @@ -81,7 +81,10 @@ $( document ).ready(function() { href: pkgi['source_url'] } )); make_editbutton ( "pi_source", pkgi['source'], submit_mod_source ); - $( "#pi_checksum" ).text( pkgi['checksum'] ); + $( "#pi_checksum" ).html("").text( pkgi['checksum'] ); + if ( pkgi['checksum-error'] ) { + $( "#pi_checksum" ).append( [ "Error:", $("
").text(pkgi['checksum-error']) ] ); }
+
         $( "#pi_last_updated" ).text( format_time(pkgi['last-updated']) );
         $( "#pi_last_checked" ).text( format_time(pkgi['last-checked']) );
         $( "#pi_last_edit" ).text( format_time(pkgi['last-edit']) );