X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Tab.PersonList.js;h=9da9e679ade2989348a981ccf6aa913f11387ad9;hb=2be150527d6ada3cea26eba761c642ce1f056ad4;hp=b8a3c39a4c9998a73dcce6615806cf158607a5e7;hpb=8aada91d09a29ccf2b3a90d96d4a9d8ebd350c3b;p=Pman.Core diff --git a/Pman.Tab.PersonList.js b/Pman.Tab.PersonList.js index b8a3c39a..9da9e679 100644 --- a/Pman.Tab.PersonList.js +++ b/Pman.Tab.PersonList.js @@ -458,10 +458,10 @@ Pman.Tab.PersonList.prototype = { //Pman.genericDelete(_this, 'Person'); var rec = _this.grid.ds.getAt(_this.grid.selModel.last); - console.log(_this.paging); - var ids = []; - ids.push(rec.id); - if (!ids.length) { + + var rec_id = rec.id; + + if (rec_id * 1 < 1) { Roo.MessageBox.alert("Error", "Select row to delete"); return; } @@ -477,11 +477,11 @@ Pman.Tab.PersonList.prototype = { method : 'POST', url : baseURL + '/Roo/core_person', params : { - _delete : ids.join(',') + _delete : rec_id }, success : function() { - - _this.grid.footer.onClick('refresh'); + _this.paging.onClick('refresh'); + //_this.grid.footer.onClick('refresh'); } }); } @@ -623,6 +623,24 @@ Pman.Tab.PersonList.prototype = { // width : 150 }, cfg); }, + + c_group_membership : function(cfg) { + cfg = cfg || {}; + return Roo.apply({ + // id : (this.id + '-name').toLowerCase(), + header : "Group Membership", + dataIndex : 'member_of', + sortable : false, + renderer : function(v,p,r) { + if(r.data.active != 1){ + return String.format('
{0}
', v).split("\n").join("
"); + } + return String.format('{0}', v).split("\n").join("
"); + }, + width : 150 + }, cfg); + }, + c_company_id_comptype : function(cfg) { cfg = cfg || {}; return Roo.apply({