course displayfor university select

This commit is contained in:
venbatechnologies@gmail.com 2018-10-09 19:46:31 +05:30
parent baf9aa7470
commit bcc699be0c
3 changed files with 14 additions and 2 deletions

View File

@ -175,7 +175,13 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
"Status": ""
}
$scope.myUnivSearch = "";
$scope.coursedropdownstatus = true;
$scope.getUniveId = function (univ) {
$scope.coursedropdownstatus = false;
if (univ === '') {
$scope.myUnivSearch = "";
$scope.searchData.University = '';
@ -1765,7 +1771,9 @@ $scope.allcourselist ='';
"Status": ""
}
$scope.myUnivSearch = "";
$scope.coursedropdownstatus = true;
$scope.getUniveId = function (univ) {
$scope.coursedropdownstatus = false;
let name = JSON.parse(univ);
$scope.searchData.University = name.UniversityID;
$scope.searchData.Course = '';

View File

@ -97,7 +97,9 @@
Course
</label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course"
ng-disabled="coursedropdownstatus"
ng-change="getValueChange()">
<option value="" selected>Select Course</option>
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}<span ng-show="itemCourse.CourseCode != ''">(<strong>{{itemCourse.CourseCode}}</strong>)</span></option>
</select>

View File

@ -137,7 +137,9 @@
Course
</label>
<select ui-select2 class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
<select ui-select2 class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course"
ng-disabled="coursedropdownstatus"
ng-change="getValueChange()">
<option value="" selected>Select Course</option>
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}<span ng-show="itemCourse.CourseCode != ''">(<strong>{{itemCourse.CourseCode}}</strong>)</span></option>
</select>