diff options
author | Struan Donald <struan@exo.org.uk> | 2012-12-07 11:20:29 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-12-07 11:20:29 +0000 |
commit | a6c47f2a2056ebada0b47ebb600eec13c504f1fa (patch) | |
tree | aa8392c1f360eb5694c63816e07b3807de67863c /templates/web/seesomething/js/validation_rules.html | |
parent | 32af4e21192ad50eaf6c2e650ce3830235445b5c (diff) |
add cobrand module and templates for see something say something
Diffstat (limited to 'templates/web/seesomething/js/validation_rules.html')
-rw-r--r-- | templates/web/seesomething/js/validation_rules.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/web/seesomething/js/validation_rules.html b/templates/web/seesomething/js/validation_rules.html new file mode 100644 index 000000000..5517cd8e8 --- /dev/null +++ b/templates/web/seesomething/js/validation_rules.html @@ -0,0 +1,14 @@ + validation_rules = { + detail: { required: true }, + category: { required: true }, + subcategory: { required: true } + }; + + $(function(){ + $('#submit_noname').click( function(e) { + alert('click'); + $('#form_category').addClass('required validCategory').removeClass('valid'); + $('#form_subcategory').addClass('required validCategory').removeClass('valid'); + }); + }); + |