Created
November 28, 2016 11:36
-
-
Save arya-oss/1c26eedb25e0118772db14083abb9c4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$rating = 4; | |
$courseNumber = 1; | |
/* Author: Aneesh Makala | |
* Course Number starts from 0 to no. of courses | |
* Click on course feedback and then select a subject | |
* Open Dev Tools and goto COnsole Tab and Paste this script | |
*/ | |
$scope = angular.element('[ng-controller=feedbackCourses]').scope(); | |
for($i = 0; $i< $scope.course[$courseNumber].question.course.length; $i++){ | |
$scope.course[$courseNumber].question.course[$i].display = true; | |
$scope.course[$courseNumber].question.course[$i].value = $rating; | |
} | |
for($i = 0; $i< $scope.course[$courseNumber].question.faculty.length; $i++){ | |
$scope.course[$courseNumber].question.faculty[$i].display = true; | |
$scope.course[$courseNumber].question.faculty[$i].value = $rating; | |
} | |
$scope.$apply(); | |
$scope.submitFeedback(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment