File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,9 @@ function checkMissingReqs() {
153
153
}
154
154
}
155
155
if ( reqsMissing == 0 ) {
156
- $ ( "#requirments " ) . html ( "Requirements Met!" ) ;
156
+ $ ( "#requirements " ) . html ( "Requirements Met!" ) ;
157
157
} else {
158
- $ ( "#requirments " ) . html ( "Requirments missing: " + reqsMissing ) ;
158
+ $ ( "#requirements " ) . html ( "Requirements missing: " + reqsMissing ) ;
159
159
}
160
160
}
161
161
@@ -200,7 +200,6 @@ window.dragFromPlan = function(event){
200
200
draggedPlanOrigin = event . target ;
201
201
draggedCatOrigin = null ;
202
202
draggedPlanOrigin = event . target ;
203
- checkMissingReqs ( ) ;
204
203
}
205
204
206
205
// indicate valid drop when hovering over plan
@@ -321,7 +320,8 @@ window.dropInTrash = function(event){
321
320
$ ( "#hrsFuture" ) . html ( "Remaining Hours: " + currPlan . hrsFuture ) ;
322
321
$ ( "#hrsTotal" ) . html ( "Total Hours Planned: " + currPlan . hrsTotal ) ;
323
322
324
- addToRequirements ( draggedCourse . designator ) ;
323
+ addToRequirements ( draggedCourse . designator ) ;
324
+ checkMissingReqs ( ) ;
325
325
}
326
326
draggedCourse = null ;
327
327
}
Original file line number Diff line number Diff line change 47
47
< header class ="panelHeader "> Hours</ header > < div class ="container ">
48
48
< p id ="hrsCompleted "> Hours Completed: </ p >
49
49
< p id ="hrsCurrent "> Current Hours: </ p >
50
- < p id ="hrsFuture "> Remaining Hours: </ p >
50
+ < p id ="hrsFuture "> Remaining Hours: </ p >
51
51
< p id ="hrsTotal "> Total Hours Planned: </ p >
52
+ < p id ="requirements "> Requirements </ p >
52
53
</ div >
53
54
</ div >
54
55
You can’t perform that action at this time.
0 commit comments