a54c7c3f by yangjianbin

init

1 parent 9ca28e03
...@@ -106,6 +106,13 @@ ...@@ -106,6 +106,13 @@
106 iDisplayLength:10, 106 iDisplayLength:10,
107 bLengthChange: false, 107 bLengthChange: false,
108 ajax: '<?=site_url("work/data")?>', 108 ajax: '<?=site_url("work/data")?>',
109 dataSrc: function ( json ) {
110 alert('json')
111 for ( var i=0, ien=json.data.length ; i<ien ; i++ ) {
112 json.data[i][0] = '<a href="/message/'+json.data[i][0]+'>View message</a>';
113 }
114 return json.data;
115 },
109 columns: [ 116 columns: [
110 {data: "id", render: function (data, type, full) { 117 {data: "id", render: function (data, type, full) {
111 return '<span class="dropDown dropDown_hover">\ 118 return '<span class="dropDown dropDown_hover">\
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!