1
0
Fork 0
forked from 0x2620/oxjs

changes to dialogs, events, forms

This commit is contained in:
rolux 2010-12-26 20:16:35 +00:00
commit d1dee61a5f
5 changed files with 256 additions and 162 deletions

View file

@ -1618,6 +1618,10 @@ Ox.highlight = function(txt, str) {
new RegExp('(' + str + ')', 'ig'),
'<span class="OxHighlight">$1</span>'
) : txt;
};
Ox.isValidEmail = function(str) {
return !!/^[0-9A-Z\.\+\-_]+@(?:[0-9A-Z\-]+\.)+[A-Z]{2,6}$/i(str);
}
Ox.pad = function(str, len, pad, pos) {