MyAcc: using JS confirm instead of JS Alert
[myslice.git] / portal / static / js / my_account.register.js
index bb7fba4..fe8f575 100644 (file)
@@ -8,7 +8,7 @@ Copyright 2013, UPMC Sorbonne Universités / LIP6
 */
 jQuery(document).ready(function(){
     
-    jQuery("#commentForm").validate({
+    jQuery("#registrationForm").validate({
         rules: {
           password: { 
                 required: true
@@ -19,15 +19,14 @@ jQuery(document).ready(function(){
         }
     });
     // upload button
-    jQuery("#question").change(function(){
+    jQuery("#key-policy").change(function(){
         if(this.value=="upload"){
             jQuery("#upload_key").show();
         }else{
             jQuery("#upload_key").hide();
         }
     });
-
-});
+ });
 
 jQuery(function() {
     var availableTags = [