- uEditSetVal( patron, "day_phone",
- verify($('ue_day_phone_area'),
- $('ue_day_phone_prefix'),
- $('ue_day_phone_suffix')), 'phone', er );
-
- uEditSetVal( patron, "evening_phone",
- verify($('ue_night_phone_area'),
- $('ue_night_phone_prefix'),
- $('ue_night_phone_suffix')), 'phone', er );
-
- if( $('ue_other_phone_prefix').value ) {
- uEditSetVal( patron, "other_phone",
- verify($('ue_other_phone_area'),
- $('ue_other_phone_prefix'),
- $('ue_other_phone_suffix')), 'phone', er );
- }
+ var r1 = verify($('ue_day_phone_area'), $('ue_day_phone_prefix'),$('ue_day_phone_suffix'));
+ var r2 = verify($('ue_night_phone_area'), $('ue_night_phone_prefix'),$('ue_night_phone_suffix'));
+ var r3 = verify($('ue_other_phone_area'), $('ue_other_phone_prefix'),$('ue_other_phone_suffix'));
+
+ if(r1 != null)
+ uEditSetVal( patron, "day_phone", r1, 'phone', er);
+
+ if(r2 != null)
+ uEditSetVal( patron, "evening_phone", r2, 'phone', er);