Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added missing javascript validation

  • Loading branch information...
commit 2f717af1603d43ff0bdc13c812172a10cdfb0aed 1 parent bada092
Daniel Scott authored
View
32 admin/models/forms/category.js
@@ -0,0 +1,32 @@
+window.addEvent('domready', function() {
+ document.formvalidator.setHandler('name',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('alias',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('picture',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('coach',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('trainer',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('manager',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+});
View
12 admin/models/forms/categorymember.js
@@ -0,0 +1,12 @@
+window.addEvent('domready', function() {
+ document.formvalidator.setHandler('category_id',
+ function (value) {
+ regex=/^[0-9]+$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('member_id',
+ function (value) {
+ regex=/^[0-9]+$/;
+ return regex.test(value);
+ });
+});
View
12 admin/models/forms/clubcategory.js
@@ -0,0 +1,12 @@
+window.addEvent('domready', function() {
+ document.formvalidator.setHandler('club_id',
+ function (value) {
+ regex=/^[0-9]+$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('category_id',
+ function (value) {
+ regex=/^[0-9]+$/;
+ return regex.test(value);
+ });
+});
View
147 admin/models/forms/member.js
@@ -0,0 +1,147 @@
+window.addEvent('domready', function() {
+ document.formvalidator.setHandler('name',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('alias',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('picture',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('number',
+ function (value) {
+ regex=/^[0-9]+$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('position',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('residence',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('nicknames',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('dob',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('nationality',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('club_history',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('honours',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('about',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('quote',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('home_town',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('fave_player',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('height_weight',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('school_attending',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('graduating_class',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('sat_act',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('level_rating',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('decision_makers',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('travel_schedule',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('hobbies',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('conference',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('leaving_date',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('joining_date',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('first_name',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('middle_name',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+ document.formvalidator.setHandler('last_name',
+ function (value) {
+ regex=/^.*$/;
+ return regex.test(value);
+ });
+});
Please sign in to comment.
Something went wrong with that request. Please try again.