Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/16/08 12:29:31 (6 months ago)
Author:
bwolfe
Message:

Merging trunk to the 1.3.x branch (sideporting) to get bug fixes into an RC5 release [4745]:[4946]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/1.3.x/web/scripts/drugOrder.js.withjstl

    r4095 r4947  
    1919 
    2020                var currentRegimenTableCellFuncs = regimenMode != "view" ? [ 
    21                         function(data) { return "&nbsp;&nbsp;&nbsp;&nbsp;<a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; }, 
     21                        function(data) {  
     22                                if (data.drugName != null) 
     23                                        return "&nbsp;&nbsp;&nbsp;&nbsp;<a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>";  
     24                                else 
     25                                        return "&nbsp;&nbsp;&nbsp;&nbsp;<a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.conceptName + "</a>";  
     26                        }, 
    2227                        function(data) { return data.dose + " " + data.units; }, 
    2328                        function(data) { return "" + data.frequency; }, 
     
    4853                        } 
    4954                ] : [ 
    50                         function(data) { return "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; }, 
     55                        function(data) {  
     56                        if (data.drugName != null) 
     57                                return "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>";  
     58                        else 
     59                                return "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.conceptName + "</a>";  
     60                        }, 
    5161                        function(data) { return data.dose + " " + data.units; }, 
    5262                        function(data) { return "" + data.frequency; }, 
     
    5767 
    5868                var completedRegimenTableCellFuncs = regimenMode != "view" ? [ 
    59                         function(data) { return "&nbsp;&nbsp;&nbsp;&nbsp;<a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; }, 
     69                        function(data) {  
     70                        if (data.drugName != null) 
     71                                return "&nbsp;&nbsp;&nbsp;&nbsp;<a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>";  
     72                        else 
     73                                return "&nbsp;&nbsp;&nbsp;&nbsp;<a class=\"patientRegimenDrugName\" href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.conceptName + "</a>"; 
     74                        }, 
    6075                        function(data) { return data.dose + " " + data.units; }, 
    6176                        function(data) { return "" + data.frequency; }, 
     
    7691                        } 
    7792                ] : [ 
    78                         function(data) { return "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>"; }, 
     93                        function(data) {  
     94                                if (data.drugName != null) 
     95                                        return "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.drugName + "</a>";  
     96                                else  
     97                                        return "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"orderDrug.form?orderId=" + data.orderId + "\">" + data.conceptName + "</a>";  
     98                        }, 
    7999                        function(data) { return data.dose + " " + data.units; }, 
    80100                        function(data) { return "" + data.frequency; },