course details changes done

This commit is contained in:
gandhimathi 2018-03-15 11:28:18 +05:30
parent 726af64f58
commit d9d64ae4fc

View File

@ -2238,7 +2238,7 @@ app.directive('visible', function() {
});
/*modal controller
* */
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log,apiPoint,$http) {
app.controller('studentModalDemoCtrl', ["$scope", "$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $rootScope, $modal, $log,apiPoint,$http) {
//Tooltip for print button
$scope.dynamicTooltip = 'Student View';
@ -2322,6 +2322,23 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
});
};
$scope.printStudentDetails = function (details) {
$rootScope.pdfItems = details;
$scope.printInstance = $modal.open({
templateUrl: 'assets/views/student/studentPdf.html',
controller: 'studentModalDemoCtrl',
});
};
// generate pdf for student view
$scope.export = function(getName) {
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
kendo.drawing.pdf.saveAs(group, getName+".pdf");
});
}
}]);