From c9cb8af45509c3d3b932b40997d121fb96f2506f Mon Sep 17 00:00:00 2001 From: Chad Birch Date: Tue, 28 May 2013 11:16:32 -0700 Subject: [PATCH] Make gold partner code read-only --- r2/r2/public/static/js/gold.js | 2 +- r2/r2/templates/goldpartnerspage.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/r2/r2/public/static/js/gold.js b/r2/r2/public/static/js/gold.js index ce25c7ac0..f1c895412 100644 --- a/r2/r2/public/static/js/gold.js +++ b/r2/r2/public/static/js/gold.js @@ -200,7 +200,7 @@ r.gold = { var $newelem = $('').text(data['explanation']) $(elem).replaceWith($newelem) } else { - var $newelem = $('').attr('value', data['code']) + var $newelem = $('').attr('value', data['code']) $(elem).replaceWith($newelem) $newelem.select() } diff --git a/r2/r2/templates/goldpartnerspage.html b/r2/r2/templates/goldpartnerspage.html index e9fe2b23a..2753efe35 100644 --- a/r2/r2/templates/goldpartnerspage.html +++ b/r2/r2/templates/goldpartnerspage.html @@ -41,7 +41,7 @@ %endif %if name in thing.existing_codes: - + %elif c.user.gold: ${_('claim code')} %else: