Pman.Tab.PersonList.js
authorMichael <michael@roojs.com>
Thu, 5 Mar 2015 05:02:07 +0000 (13:02 +0800)
committerMichael <michael@roojs.com>
Thu, 5 Mar 2015 05:02:07 +0000 (13:02 +0800)
Pman.Tab.PersonList.js

index 9444ed2..19e57c4 100644 (file)
@@ -578,7 +578,13 @@ Pman.Tab.PersonList.prototype = {
          //   id : (this.id + '-name').toLowerCase(),
             header : "Name",
             dataIndex : 'name',
-            sortable : true
+            sortable : true,
+            renderer : function(v,p,r) { 
+                if(r.data.active != 1){
+                    return String.format('<div style="text-decoration:line-through">{0}</div>', v); 
+                }
+                return String.format('{0}', v); 
+            }
           //  width : 150  
         }, cfg);
     },