added misc plugins towards wizards for the portal
[myslice.git] / plugins / form / form.js
diff --git a/plugins/form/form.js b/plugins/form/form.js
new file mode 100644 (file)
index 0000000..d02779f
--- /dev/null
@@ -0,0 +1,23 @@
+// Jquery for the Registration page. /views/register/tmpl/deafult.php
+jQuery(document).ready(function(){
+    
+    jQuery("#commentForm").validate({
+        rules: {
+          password: { 
+                required: true
+          }, 
+          confirmpassword: { 
+                required: true, equalTo: "#password"
+          }
+        }
+    });
+    // upload button
+    jQuery("#question").change(function(){
+        if(this.value=="upload"){
+            jQuery("#upload_key").show();
+        }else{
+            jQuery("#upload_key").hide();
+        }
+    });
+
+});