Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
05/09/08 21:34:56 (8 months ago)
Author:
catullus
Message:

data_synchronization_bidirectionaly: merge from tunk [4129:4157].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/data_synchronization_bidirectional/web/WEB-INF/view/admin/reports/dataExportForm.jsp

    r4096 r4161  
    115115        } 
    116116         
     117        function trim(stringToTrim) { 
     118                return stringToTrim.replace(/^\s+|\s+$/g,""); 
     119        } 
     120         
     121         
    117122        function updateSimpleColumn(sel) { 
    118123                if (sel.value != "") { 
     
    124129                        if (input != null && input.value == "") { 
    125130                                var opt = sel.options[sel.selectedIndex]; 
    126                                 input.value = opt.text.substr(2, opt.text.length); 
     131                                input.value = trim(opt.text); 
    127132                        } 
    128133                }