student view pdf done in calltracking
This commit is contained in:
parent
792525083c
commit
32f9c9ec00
@ -1712,7 +1712,7 @@ app.filter('unique', function() {
|
|||||||
|
|
||||||
/*modal controller
|
/*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
|
//Tooltip for print button
|
||||||
$scope.dynamicTooltip = 'Student View';
|
$scope.dynamicTooltip = 'Student View';
|
||||||
|
|
||||||
@ -1794,6 +1794,21 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
|||||||
$log.info('Modal dismissed at: ' + new Date());
|
$log.info('Modal dismissed at: ' + new Date());
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
$scope.printStudentDetails = function (details) {
|
||||||
|
$rootScope.pdfItems = details;
|
||||||
|
|
||||||
|
var 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");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user