From 92136dcd1f6160afa3a1763cd0fcd97b802d8bd7 Mon Sep 17 00:00:00 2001 From: Nathan Leniz Date: Sat, 14 Feb 2015 22:52:44 -0500 Subject: [PATCH] Fixing dependency injection for account view as well as defining a challengeName to suppress errors --- public/js/main.js | 2 +- views/account/account.jade | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/main.js b/public/js/main.js index 58703f0dbc..a9bca401e2 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -167,7 +167,7 @@ profileValidation.controller('doneWithFirst100HoursFormController', ['$scope', } ]); -profileValidation.directive('uniqueUsername',['$scope', '$http',function($http) { +profileValidation.directive('uniqueUsername',['$http',function($http) { return { restrict: 'A', require: 'ngModel', diff --git a/views/account/account.jade b/views/account/account.jade index 08ba8b0ccd..8bff89c285 100644 --- a/views/account/account.jade +++ b/views/account/account.jade @@ -1,5 +1,7 @@ extends ../layout block content + script. + var challengeName = 'Account View' .panel.panel-primary.min-height-1000(ng-controller="profileValidationController") .panel-heading.text-center Update your profile here: .panel-body