diff --git a/core/static/js/core/controllers.js b/core/static/js/core/controllers.js index bd6f98adb..ef4f87c9d 100644 --- a/core/static/js/core/controllers.js +++ b/core/static/js/core/controllers.js @@ -198,14 +198,4 @@ }; }]); - app.controller('CourseHeaderCtrl', [ - '$scope', - function ($scope) { - $scope.confirmUrl = function(url, msg) { - if (confirm(msg)) - window.location.href = url; - }; - } - ]); - })(angular); diff --git a/core/static/js/header/header-controllers.js b/core/static/js/header/header-controllers.js index 441391d29..80a0e7f9d 100644 --- a/core/static/js/header/header-controllers.js +++ b/core/static/js/header/header-controllers.js @@ -32,4 +32,14 @@ } ]); + app.controller('CourseHeaderCtrl', [ + '$scope', + function ($scope) { + $scope.confirmUrl = function(url, msg) { + if (confirm(msg)) + window.location.href = url; + }; + } + ]); + })(window.angular);