Project

General

Profile

« Previous | Next » 

Revision 50634

View differences:

affiliations.js
5 5

  
6 6
	$scope.affiliations = [];
7 7
	$scope.tempAffiliation = {};
8
	$scope.daterange = [];
9 8
	$scope.groups = [];
10 9
			
11 10
	$scope.refresh = function() {
12 11
		showSpinner();
13
		
14
		$scope.daterange = [];
15
		for (var i = 2000; i <= (new Date()).getFullYear(); i++) {
16
			$scope.daterange.push(i);
17
		}
18
			
12
					
19 13
		$scope.affiliations = [];
20 14
		$http.get('portal/aff_view').success(function(data) {
21 15
			hideSpinner();
......
35 29
		
36 30
	}
37 31
		
38
	$scope.prepareTempAffiliation = function(pid, pname) {
32
	$scope.prepareTempAffiliation = function(pid, pname, year) {
39 33
		$scope.tempAffiliation = {
40 34
			'pid'   : pid,
41
			'pname' : pname
35
			'pname' : pname,
36
			'year'  : year
42 37
		}
43 38
	}
44 39

  
45
	$scope.saveAffiliation = function(aff) {}
40
	$scope.saveAffiliation = function(aff) { alert('TODO'); }
46 41
	
47 42
	$scope.refresh();
48 43
	

Also available in: Unified diff