[OPEN-ILS-DEV] email regex patch
Laura Cassell
lcassell at esilibrary.com
Mon Oct 12 14:04:05 EDT 2009
So, I was noticing that our email regex in the org_unit.html only allows
a word, then an @ then words, .'s and more words. A library needed to
have the ability to have periods in the beginning name, so I just made a
quick fix. It's far from elegant; but it gets the job done. Patch is
attached.
Thanks, guys!
===================================================================
--- org_unit.html (revision 14375)
+++ org_unit.html (working copy)
@@ -239,7 +239,7 @@
<tr>
<th>&conify.org_unit.editor_pane.main_email;</th>
<td>
-
<span id="editor_pane_email" dojoType="dijit.form.ValidationTextBox"
jsId="editor_pane_email" regExp="^\w+\@\w+(?:\.\w+)+$">
+
<span id="editor_pane_email" dojoType="dijit.form.ValidationTextBox"
jsId="editor_pane_email" regExp="^\w+(?:\.\w+)\@\w+(?:\.\w+)+$">
<script type="dojo/connect" event="onChange">
if (current_ou) ou_list_store.setValue( current_ou, "email",
this.getValue() );
</script>
Laura Cassell
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: emailregex_ou.patch
Url: http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20091012/a131013c/attachment.txt
More information about the Open-ils-dev
mailing list