this.footer.onClick('first');
}
},
- rowdblclick : function (_self, rowIndex, e)
- {
- if (!_this.dialog) return;
- _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
- _this.grid.footer.onClick('first');
- });
- },
cellclick : function (_self, rowIndex, columnIndex, e)
{
_this.dataUpdate = typeof(_this.dataUpdate) =='undefined' ? {} : _this.dataUpdate;
return;
}
var rec = _this.grid.ds.getAt(rowIndex);
+ var fm = rec.data.FullMask.split('');
if(k == 'AA'){
- var fm = rec.data.FullMask.split('');
+
Roo.each(fm, function(e){
rec.set(i+'_'+e, rec.data[i+'_'+k] ? 0 : 1);
});
}
rec.set(i+'_'+k, rec.data[i+'_'+k] ? 0 : 1);
+
+ var newmask = '';
+ Roo.each(fm, function(e) {
+ if (rec.data[i+'_'+e] === 1) {
+
+ newmask += e;
+ }
+
+ });
+
//rec.data.accessmask = rec.data.accessmask + rec
//Roo.log(rec);
- _this.dataUpdate[rec.data.id] = rec.data.accessmask;
+ _this.dataUpdate[rec.data.id] = newmask;
//rec.commit();
if (!o.params) {
o.params = {}
}
- _this.group_id = 0;
+ _this.group_id = -1;
var s = Pman.Tab.AdminContactsGroup.grid.getSelectionModel().getSelections();
if (!s.length) {
new Pman.Request({
url : baseURL + '/Admin/GroupRights.php',
method :'POST',
+ mask: "Saving",
params : params,
success : function() {
// do nothing