Total Complexity | 6 |
Complexity/F | 1 |
Lines of Code | 29 |
Function Count | 6 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | "use strict"; |
||
2 | app.controller('editboxController', ['$scope', 'Security', function ($scope, Security, $rootScope) { |
||
3 | $scope.previousSelectedRecord = {}; |
||
4 | $scope.previousPointedRecord = {}; |
||
5 | |||
6 | function Initialize(){ |
||
7 | var entryForm = {}; |
||
8 | $scope.entryForm = entryForm; |
||
9 | } |
||
10 | Initialize(); |
||
11 | |||
12 | $scope.EventListener = function(scope, iElement, iAttrs, controller){ |
||
13 | iElement.ready(function() { |
||
14 | |||
15 | }) |
||
16 | } |
||
17 | |||
18 | $scope.CustomSelectedToRecord = function(sRecord, rowScope, scope, iElement, controller){ |
||
19 | // asign the selected record to ng-model |
||
20 | $scope.entryForm.DeptCode = sRecord.DepartmentCode; |
||
21 | $scope.previousSelectedRecord = sRecord; |
||
22 | } |
||
23 | |||
24 | $scope.CustomPointedToRecord = function(sRecord, rowScope, scope, iElement, controller){ |
||
25 | // asign the pointed record to ng-model |
||
26 | $scope.entryForm.DeptCode = sRecord.DepartmentCode; |
||
27 | $scope.previousPointedRecord = sRecord; |
||
28 | } |
||
29 | }]); |