Changeset 20431 for extensions/Piwecard/js
- Timestamp:
- Jan 27, 2013, 9:56:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/js/piwecard.js
r20254 r20431 1 /** 2 * Check if a field is valid 3 * @param Object element to check 4 * @param Integer type of the element (0 is text, 1 is email, 2 is number) 5 * @param String Style of the error displayed (default = inline) 6 * @param Boolean True if the field can be empty, False otherwise 7 * @return True if OK, False otherwise 8 */ 1 9 function piwecard_checkField(element, elementType, display, nullIsOK) { 2 10 var TEXT = 0; … … 51 59 } 52 60 61 /** 62 * Style to add to the field if piwecard_checkField returns false 63 * @param Object element 64 * @param String Style of the error displayed (default = inline) 65 */ 53 66 function add_error_style(element, display) { 54 67 document.getElementById(element.id+'_error').style.display = display; … … 56 69 } 57 70 71 /** 72 * Remove the error style from the field if piwecard_checkField returns true 73 * @param Object element 74 */ 58 75 function remove_error_style(element) { 59 76 document.getElementById(element.id+'_error').style.display = 'none';
Note: See TracChangeset
for help on using the changeset viewer.