Skip to content

Commit

Permalink
Fix CourseHeaderCtrl
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoVS committed Jun 13, 2017
1 parent 9198d6a commit cf67e74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 0 additions & 10 deletions core/static/js/core/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,4 @@
};
}]);

app.controller('CourseHeaderCtrl', [
'$scope',
function ($scope) {
$scope.confirmUrl = function(url, msg) {
if (confirm(msg))
window.location.href = url;
};
}
]);

})(angular);
10 changes: 10 additions & 0 deletions core/static/js/header/header-controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,14 @@
}
]);

app.controller('CourseHeaderCtrl', [
'$scope',
function ($scope) {
$scope.confirmUrl = function(url, msg) {
if (confirm(msg))
window.location.href = url;
};
}
]);

})(window.angular);

0 comments on commit cf67e74

Please sign in to comment.