change id validation rule on register
authorMark <mark@nirph.com>
Tue, 6 Dec 2016 12:48:58 +0000 (14:48 +0200)
committerMark <mark@nirph.com>
Tue, 6 Dec 2016 12:48:58 +0000 (14:48 +0200)
public/js/app/brochure-workspace/register.js
public/js/app/workspace.js
public/templates/page/register.html

index 1b8d8dd..c262135 100644 (file)
                                        id    : 'idNumber',
                                        title : 'ID Number',
                                        value : '',
                                        id    : 'idNumber',
                                        title : 'ID Number',
                                        value : '',
-                                       maxlength : 13,
+                                       maxlength : 20,
                                        onChange  : function() {
                                                var dig = $(this).val().substring(0, 6);
                                                $('#dateOfBirth').val(
                                        onChange  : function() {
                                                var dig = $(this).val().substring(0, 6);
                                                $('#dateOfBirth').val(
                                        confirmEmail: {required: true, email: true, equalTo: "#email"},
                                        pin: {required: true, digits: true},
                                        confirmPin: {required: true, digits: true, equalTo: "#pin"},
                                        confirmEmail: {required: true, email: true, equalTo: "#email"},
                                        pin: {required: true, digits: true},
                                        confirmPin: {required: true, digits: true, equalTo: "#pin"},
-                                       idNumber: {required: true, minlength: 13, maxlength: 13, digits: true},
+                                       //idNumber: {required: true, minlength: 13, maxlength: 13, digits: true},
+                                       idNumber: {required: true, minlength: 3, maxlength: 20, digits: true},
                                        dateOfBirth: {required: true, dateISO: true},
                                        mobile: {required: true, mobile: true},
 
                                        dateOfBirth: {required: true, dateISO: true},
                                        mobile: {required: true, mobile: true},
 
index 8c82a6e..cecb1d5 100644 (file)
                                                                && 'bid4cars.local' != window.location.hostname
                                                                && 'bid4cars.com.na' != window.location.hostname)
                                                {
                                                                && 'bid4cars.local' != window.location.hostname
                                                                && 'bid4cars.com.na' != window.location.hostname)
                                                {
-                                                       //alert('Please click ok to refresh this page.');
+                                                       alert('Please click ok to refresh this page.');
                                                        location.reload();
                                                }
                                                console.log('------------ Task Contract Error ------------');
                                                        location.reload();
                                                }
                                                console.log('------------ Task Contract Error ------------');
index 98a4b76..bb38b2c 100644 (file)
@@ -19,7 +19,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
                                        <div class="span12">
                                                <h1>Registration</h1>
                                                <p class="page-title-header">
                                        <div class="span12">
                                                <h1>Registration</h1>
                                                <p class="page-title-header">
-                                                       Welcome to Bid4Cars registration section, please ensure you have your company registration and VAT information at hand.
+                                                       Welcome to Bid4Cars registration section, please ensure you have your ID Document and Address information at hand.
                                                </p>
                                        </div>
                                </div>
                                                </p>
                                        </div>
                                </div>