aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-07-31 12:01:27 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-07-31 12:21:33 +0100
commit87543f78383eaab0d78d0fadc1655e39f9335517 (patch)
tree3b652a2bbd1c08118cd0ae06ba93de252f490abc /web/js
parent939c6d6de069654fcbcb82722de5d71fd8cb1622 (diff)
Move Latin-char-specific name check to cobrand.
Also move some UK-specific code in the same function. The specific code is still tested in report_new.t.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/fixmystreet.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index c8f1fe697..78372d68c 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -49,10 +49,6 @@ $(function(){
jQuery.validator.addMethod('validCategory', function(value, element) {
return this.optional(element) || value != '-- Pick a category --'; }, translation_strings.category );
- jQuery.validator.addMethod('validName', function(value, element) {
- var validNamePat = /\ba\s*n+on+((y|o)mo?u?s)?(ly)?\b/i;
- return this.optional(element) || value.length > 5 && value.match( /\S/ ) && value.match( /\s/ ) && !value.match( validNamePat ); }, translation_strings.category );
-
var form_submitted = 0;
var submitted = false;