From 4f3399a7a1d82404f04714200a1f1c1ca780dbb4 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Wed, 18 Jan 2017 04:53:23 +0000 Subject: [PATCH] Bug 17855 - Removed the unnecessary javascript cardnumber validation code from onboardingstep3.tt --- .../prog/en/modules/onboarding/onboardingstep3.tt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt index 5d9fbe2..74999c4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt @@ -49,17 +49,6 @@ jQuery.validator.addMethod( "letters_only", function(value,element){ ); -jQuery.validator.addMethod( "cardnumber_check", function(value,element){ - var patt =/[A-Za-z0-9]{1,16}$/g; - if (patt.test(element.value)){ - return true; - } else { - return false; - } - }, MSG_CARDNUMBER_LETTERS_NUMBERS_ONLY -); - - $(document).ready(function(){ @@ -77,7 +66,6 @@ $(document).ready(function(){ }, cardnumber: { required: true, - cardnumber_check: true }, password: { password_match:true @@ -90,9 +78,6 @@ $(document).ready(function(){ firstname: { required: MSG_DESCRIPTION_LETTERS_ONLY }, - cardnumber: { - required: MSG_CARDNUMBER_LETTERS_NUMBERS_ONLY - }, password: { required: MSG_PASSWORD_MISMATCH }, -- 2.1.4