From d2e61bf5efb4c722d23123967643f98408f3aa65 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Sat, 11 Jul 2015 11:15:04 -0500 Subject: [PATCH] Change string to str --- website/public/js/controllers/rootCtrl.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/public/js/controllers/rootCtrl.js b/website/public/js/controllers/rootCtrl.js index bf48a7920e..1e29c87e6c 100644 --- a/website/public/js/controllers/rootCtrl.js +++ b/website/public/js/controllers/rootCtrl.js @@ -216,9 +216,9 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$ var gems = User.user.balance * 4; var itemList = Content.itemList; - var string = type; + var str = type; if (itemList[type]) { - string = window.env.t(itemList[type].localeKey) + str = window.env.t(itemList[type].localeKey) } var price = ((((item.specialClass == "wizard") && (item.type == "weapon")) || item.gearSet == "animal") + 1); @@ -230,12 +230,12 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$ } } if (gems < price) return $rootScope.openModal('buyGems'); - var message = window.env.t('buyThis', {text: string, price: price, gems: gems}) + var message = window.env.t('buyThis', {text: str, price: price, gems: gems}) if($window.confirm(message)) User.user.ops.purchase({params:{type:"gear",key:item.key}}); } else { if(gems < item.value) return $rootScope.openModal('buyGems'); - var message = window.env.t('buyThis', {text: string, price: item.value, gems: gems}) + var message = window.env.t('buyThis', {text: str, price: item.value, gems: gems}) if($window.confirm(message)) User.user.ops.purchase({params:{type:type,key:item.key}}); }