Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

fixed appirio-tech/topcoder-app/issues/1011 added function #477

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/js/app/submission-upload/js/controllers/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
vm.viewSubmission = false;
}

vm.back = function() {
window.location = '/challenge-details/'+challengeId+'/?type='+ challengeType
}

function addFont() {
vm.fonts.push({
site: '',
Expand Down
2 changes: 1 addition & 1 deletion src/js/app/submission-upload/partials/base.tpl.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container" ng-class="{uploading : uCtrl.uploadState === 'uploading'}">
<span class="competitionType" ng-class="{ develop : uCtrl.challengeType === 'develop' }"></span>
<!-- /#end competition type-->
<a ng-href="/challenge-details/{{uCtrl.challengeId}}/?type={{uCtrl.challengeType}}" class="back" href>Back to Active Challenge</a>
<a ng-click="uCtrl.back()" ng-href="/challenge-details/{{uCtrl.challengeId}}/?type={{uCtrl.challengeType}}" class="back" href>Back to Active Challenge</a>
<h2 class="pageTitle" ng-bind="uCtrl.challenge.challengeName"></h2>
<!-- /#end page title-->

Expand Down