This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +32
-23
lines changed Expand file tree Collapse file tree 7 files changed +32
-23
lines changed Original file line number Diff line number Diff line change 883883
884884 </div >
885885 <!-- end .guidelines -->
886- <div class =" envRepo" >
886+ <div class =" envRepo hide " >
887887 <h3 >Environment</h3 >
888- <input class =" environmentEdit hide " name =" environmentEdit" type =" text" maxlength =" 500" />
888+ <input class =" environmentEdit" name =" environmentEdit" type =" text" maxlength =" 500" />
889889 <h3 >Code Repo</h3 >
890- <input type =" text" class =" repoEdit hide " maxlength =" 500" />
890+ <input type =" text" class =" repoEdit" maxlength =" 500" />
891891 </div >
892892 </div > <!-- end .contestDetail -->
893893 <div class =" deliverables" >
Original file line number Diff line number Diff line change 589589
590590 </div >
591591 <!-- end .guidelines -->
592- <div class =" envRepo" >
592+ <div class =" envRepo hide " >
593593 <h3 >Environment</h3 >
594- <input class =" environmentEdit hide " name =" environmentEdit" type =" text" maxlength =" 500" />
594+ <input class =" environmentEdit" name =" environmentEdit" type =" text" maxlength =" 500" />
595595 <h3 >Code Repo</h3 >
596- <input type =" text" class =" repoEdit hide " maxlength =" 500" />
596+ <input type =" text" class =" repoEdit" maxlength =" 500" />
597597 </div >
598598 </div > <!-- end .contestDetail -->
599599
Original file line number Diff line number Diff line change 957957 </div > <!-- end of prizesInner_tech -->
958958 </div >
959959 </s:if >
960- <div class =" envRepo" >
960+ <div class =" envRepo hide " >
961961 <h3 >Environment</h3 >
962- <input class =" environmentEdit hide " name =" environmentEdit" type =" text" maxlength =" 500" />
962+ <input class =" environmentEdit" name =" environmentEdit" type =" text" maxlength =" 500" />
963963 <h3 >Code Repo</h3 >
964- <input type =" text" class =" repoEdit hide " maxlength =" 500" />
964+ <input type =" text" class =" repoEdit" maxlength =" 500" />
965965 </div >
966966 </div > <!-- end .contestDetail -->
967967 </div > <!-- End .launchContestOut -->
Original file line number Diff line number Diff line change 6969 </div >
7070 <!-- end round 2 information -->
7171 <!-- Environment -->
72- <div class =" prizes" >
72+ <div class =" prizes hide " >
7373 <h3 >Environment :</h3 >
74- <input class =" environmentEdit text hide " name =" environmentEdit" type =" text" maxlength =" 500" />
74+ <input class =" environmentEdit text" name =" environmentEdit" type =" text" maxlength =" 500" />
7575 </div >
7676
7777 <!-- repo -->
78- <div class =" prizes" >
78+ <div class =" prizes hide " >
7979 <h3 >Code Repo :</h3 >
80- <input class =" repoEdit text hide " name =" repo" type =" text" maxlength =" 500" />
80+ <input class =" repoEdit text" name =" repo" type =" text" maxlength =" 500" />
8181 </div >
8282 <!-- upload -->
8383 <div id =" uploadSection" >
Original file line number Diff line number Diff line change 4747 </div >
4848 <!-- end Match Rules -->
4949 <!-- Environment -->
50- <div class =" prizes" >
50+ <div class =" prizes hide " >
5151 <h3 >Environment :</h3 >
52- <input class =" environmentEdit text hide " name =" environmentEdit" type =" text" maxlength =" 500" />
52+ <input class =" environmentEdit text" name =" environmentEdit" type =" text" maxlength =" 500" />
5353 </div >
5454
5555 <!-- repo -->
56- <div class =" prizes" >
56+ <div class =" prizes hide " >
5757 <h3 >Code Repo :</h3 >
58- <input class =" repoEdit text hide " name =" repo" type =" text" maxlength =" 500" />
58+ <input class =" repoEdit text" name =" repo" type =" text" maxlength =" 500" />
5959 </div >
6060 <!-- upload -->
6161 <div id =" alUploadSection" >
Original file line number Diff line number Diff line change 110110 </div > <!-- end of prizesInner_tech -->
111111 </div >
112112 <!-- Environment -->
113- <div class =" prizes" >
113+ <div class =" prizes hide " >
114114 <h3 >Environment :</h3 >
115- <input class =" environmentEdit text hide " name =" environmentEdit" type =" text" maxlength =" 500" />
115+ <input class =" environmentEdit text" name =" environmentEdit" type =" text" maxlength =" 500" />
116116 </div >
117117
118118 <!-- repo -->
119- <div class =" prizes" >
119+ <div class =" prizes hide " >
120120 <h3 >Code Repo :</h3 >
121- <input class =" repoEdit text hide " name =" repo" type =" text" maxlength =" 500" />
121+ <input class =" repoEdit text" name =" repo" type =" text" maxlength =" 500" />
122122 </div >
123123<!-- Contest Detail -->
124124
Original file line number Diff line number Diff line change @@ -459,8 +459,17 @@ function continueOverview() {
459459 if ( ! validateFieldsOverview ( ) ) {
460460 return ;
461461 }
462- mainWidget . softwareCompetition . projectHeader . properties [ ENVIRONMENT ] = $ ( ".environmentEdit:visible" ) . val ( ) . trim ( ) ;
463- mainWidget . softwareCompetition . projectHeader . properties [ CODE_REPO ] = $ ( ".repoEdit:visible" ) . val ( ) . trim ( ) ;
462+
463+ var environmentEdit = $ ( ".environmentEdit:visible" ) . val ( ) ;
464+ if ( environmentEdit ) {
465+ mainWidget . softwareCompetition . projectHeader . properties [ ENVIRONMENT ] = environmentEdit . trim ( ) ;
466+ }
467+
468+ var repoEdit = $ ( ".repoEdit:visible" ) . val ( ) ;
469+ if ( repoEdit ) {
470+ mainWidget . softwareCompetition . projectHeader . properties [ CODE_REPO ] = repoEdit . trim ( ) ;
471+ }
472+
464473 var backLink = '<a href="javascript: backReview();" class="tipLink"><img src="/images/edit-icon.png" alt="Edit"/></a>' ;
465474 $ ( ".rEnvironment" ) . html ( mainWidget . softwareCompetition . projectHeader . properties [ ENVIRONMENT ] + backLink ) ;
466475 $ ( ".rRepo" ) . html ( mainWidget . softwareCompetition . projectHeader . properties [ CODE_REPO ] + backLink ) ;
You can’t perform that action at this time.
0 commit comments