ForgotPassword: initial layout created
[myslice.git] / portal / static / js / my_account.register.js
1 /* 
2 # Jquery for password matching and Affiliation list
3
4 Authors:
5   Mohammed Yasin Rahman <mohammed-yasin.rahman@lip6.fr>
6 Copyright 2013, UPMC Sorbonne Universités / LIP6
7
8 */
9 jQuery(document).ready(function(){
10     
11     jQuery("#registrationForm").validate({
12         rules: {
13           password: { 
14                 required: true
15           }, 
16           confirmpassword: { 
17                 required: true, equalTo: "#password"
18           }
19         }
20     });
21     // upload button
22     jQuery("#key-policy").change(function(){
23         if(this.value=="upload"){
24             jQuery("#upload_key").show();
25         }else{
26             jQuery("#upload_key").hide();
27         }
28     });
29
30 });
31
32 jQuery(function() {
33     var availableTags = [
34       "iMinds",
35       "IT Innovation",
36       "UPMC",
37       "Fraunhofer",
38       "TUB",
39       "UEDIN",
40       "INRIA",
41       "NICTA",
42       "ATOS",
43       "UTH",
44       "NTUA",
45       "UNIVBRIS",
46       "i2CAT",
47       "EUR",
48       "DANTE Limited",
49       "UC",
50       "NIA"
51     ];
52     jQuery( "#aff_list" ).autocomplete({
53       source: availableTags
54     });
55   });
56