forked from 0x2620/oxjs
changes to dialogs, events, forms
This commit is contained in:
parent
3d136c4657
commit
d1dee61a5f
5 changed files with 256 additions and 162 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue