Changeset 4161 for openmrs/branches/data_synchronization_bidirectional/web/WEB-INF/view/admin/reports/dataExportForm.jsp
- Timestamp:
- 05/09/08 21:34:56 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/data_synchronization_bidirectional/web/WEB-INF/view/admin/reports/dataExportForm.jsp
r4096 r4161 115 115 } 116 116 117 function trim(stringToTrim) { 118 return stringToTrim.replace(/^\s+|\s+$/g,""); 119 } 120 121 117 122 function updateSimpleColumn(sel) { 118 123 if (sel.value != "") { … … 124 129 if (input != null && input.value == "") { 125 130 var opt = sel.options[sel.selectedIndex]; 126 input.value = opt.text.substr(2, opt.text.length);131 input.value = trim(opt.text); 127 132 } 128 133 }