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

Commit 5cbfdb2

Browse files
authored
Merge pull request #477 from shubhendusaurabh/submit-back-link
fixed topcoder-archive/appirio_tech-topcoder-app/issues/1011 added function
2 parents 7188bcc + ff41eda commit 5cbfdb2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/js/app/submission-upload/js/controllers/controller.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
vm.viewSubmission = false;
6969
}
7070

71+
vm.back = function() {
72+
window.location = '/challenge-details/'+challengeId+'/?type='+ challengeType
73+
}
74+
7175
function addFont() {
7276
vm.fonts.push({
7377
site: '',

src/js/app/submission-upload/partials/base.tpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="container" ng-class="{uploading : uCtrl.uploadState === 'uploading'}">
22
<span class="competitionType" ng-class="{ develop : uCtrl.challengeType === 'develop' }"></span>
33
<!-- /#end competition type-->
4-
<a ng-href="/challenge-details/{{uCtrl.challengeId}}/?type={{uCtrl.challengeType}}" class="back" href>Back to Active Challenge</a>
4+
<a ng-click="uCtrl.back()" ng-href="/challenge-details/{{uCtrl.challengeId}}/?type={{uCtrl.challengeType}}" class="back" href>Back to Active Challenge</a>
55
<h2 class="pageTitle" ng-bind="uCtrl.challenge.challengeName"></h2>
66
<!-- /#end page title-->
77

0 commit comments

Comments
 (0)