PHP8
[Pman.BAdmin] / Pman.Tab.BAdminLogEvents.js
index e24da02..992ada4 100644 (file)
@@ -990,7 +990,6 @@ Pman.Tab.BAdminLogEvents = new Roo.XComponent({
        cls : 'table-fixed',
        hover : true,
        loadMask : true,
-       responsive : true,
        rowSelection : true,
        striped : false,
        listeners : {
@@ -998,9 +997,15 @@ Pman.Tab.BAdminLogEvents = new Roo.XComponent({
          {
              _this.table = _self;
              
-             var cm = this.colModel;
+             if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {
+                 this.colModel.setHidden(this.colModel.findColumnIndex('id'), true);
+                 this.colModel.setHidden(this.colModel.findColumnIndex('on_table'), true);
+                 this.colModel.setHidden(this.colModel.findColumnIndex('ipaddr'), true);
+                 this.colModel.getColumnByDataIndex('remarks').md = 7;
+                 this.colModel.getColumnByDataIndex('remarks').sm = 7;
+                 this.colModel.getColumnByDataIndex('remarks').xs = 7;
+             }
              
-             cm.setHidden(1, true);
          },
         rowdblclick : function (_self, el, rowIndex, e)
          {
@@ -1300,7 +1305,12 @@ Pman.Tab.BAdminLogEvents = new Roo.XComponent({
          dataIndex : 'action',
          header : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
          md : 1,
-         renderer : function(v) { return String.format('{0}', v); },
+         renderer : function(v) 
+         { 
+             var vv = v.charAt(0).toUpperCase() + v.slice(1).toLowerCase();
+             
+             return String.format('{0}', vv); 
+         },
          sm : 1,
          xs : 1,
          xns : Roo.grid,