diff --git a/common/js/xe.js b/common/js/xe.js index e87e66b74..9ce3192ca 100644 --- a/common/js/xe.js +++ b/common/js/xe.js @@ -1186,6 +1186,11 @@ function setCookie(name, value, expire, path) { document.cookie = s_cookie; } +function getCookie(name) { + var match = document.cookie.match(new RegExp(name+'=(.*?);')); + if(match) return unescape(match[1]); +} + function is_def(v) { return (typeof(v)!='undefined'); } @@ -1777,6 +1782,8 @@ var Validator = xe.createApp('Validator', { val = el?$.trim(get_value($(el))):''; mod = (f.modifier||'')+','; + if(!el) continue; + if(!val) { if(f['default']) val = f['default']; if(f.required) return this.cast('ALERT', [form, name, 'isnull']) && false; diff --git a/common/js/xe.min.js b/common/js/xe.min.js index e22c60ef0..53c67886c 100644 --- a/common/js/xe.min.js +++ b/common/js/xe.min.js @@ -11,7 +11,7 @@ getApp:function(a){a=(a||"").toLowerCase();return typeof g[a]!="undefined"?g[a]: _broadcast:function(a,c,b){for(var d=0;d"+l+" "}}this.loaded_popup_menus[c]=b}if(b){c=a("#popup_menu_area").html("