added phone extension support
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Aug 2006 02:14:26 +0000 (02:14 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Aug 2006 02:14:26 +0000 (02:14 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5236 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue.xhtml
Open-ILS/xul/staff_client/server/patron/ue_config.js

index 53cd7e6..21a4b81 100644 (file)
                                                                                <td><div class='wide right'>Daytime Phone</div></td>
                                                                                <td>
                                                                                        <div class='wide left'>
-                                                                                               <input class='pad' type='text' id='ue_day_phone' maxlength='12' size='12'/>
-                                                                                               <span style='font-size: 8pt;'>(123-456-7890)</span>
+                                                                                               <input class='pad' type='text' id='ue_day_phone' size='18'/>
+                                                                                               <span style='font-size: 9pt;'> Example: 123-456-7890 or 123-456-7890 ex123</span>
                                                                                        </div>
                                                                                </td>
                                                                        </tr>
                                                                                <td><div class='wide right'>Evening Phone</div></td>
                                                                                <td>
                                                                                        <div class='wide left'>
-                                                                                               <input class='pad' type='text' id='ue_night_phone' maxlength='12' size='12'/>
+                                                                                               <input class='pad' type='text' id='ue_night_phone' size='18'/>
                                                                                        </div>
                                                                                </td>
                                                                        </tr>
                                                                                <td><div class='wide right'>Other/Cell Phone</div></td>
                                                                                <td>
                                                                                        <div class='wide left'>
-                                                                                               <input class='pad' type='text' id='ue_other_phone' maxlength='12' size='12'/>
+                                                                                               <input class='pad' type='text' id='ue_other_phone' size='18'/>
                                                                                        </div>
                                                                                </td>
                                                                        </tr>
index 0cf31d8..a4749bf 100644 (file)
@@ -41,7 +41,7 @@ const numRegex                = /^\d+$/;
 const wordRegex        = /^\w+$/;
 const ssnRegex         = /^\d{3}-\d{2}-\d{4}$/;
 const dlRegex          = /^[a-zA-Z]{2}-\w+/; /* driver's license */
-const phoneRegex       = /\d{3}-\d{3}-\d{4}/;
+const phoneRegex       = /^\d{3}-\d{3}-\d{4}(| ex\d+)$/i;
 const nonumRegex       = /^[a-zA-Z]\D*$/; /* no numbers, no beginning whitespace */
 const dateRegex        = /^\d{4}-\d{2}-\d{2}/;
 const zipRegex         = /^\d{5}(-\d{4}|$)/; /* 12345 or 12345-6789 */