projects
/
Pman.Admin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync
[Pman.Admin]
/
Pman.Tab.AdminContactsGroup.js
diff --git
a/Pman.Tab.AdminContactsGroup.js
b/Pman.Tab.AdminContactsGroup.js
index
d92291d
..
c248e61
100644
(file)
--- a/
Pman.Tab.AdminContactsGroup.js
+++ b/
Pman.Tab.AdminContactsGroup.js
@@
-23,20
+23,18
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
name : "Pman.Tab.AdminContactsGroup",
disabled : false,
permname : '',
name : "Pman.Tab.AdminContactsGroup",
disabled : false,
permname : '',
- _tree : function()
+ _tree : function(
_data
)
{
var _this = this;
var MODULE = this;
return {
{
var _this = this;
var MODULE = this;
return {
+ xtype : 'GridPanel',
background : true,
fitContainer : true,
fitToframe : true,
region : 'west',
background : true,
fitContainer : true,
fitToframe : true,
region : 'west',
- tableName : '
Groups
',
+ tableName : '
core_group
',
title : _this._strings['a37ede293936e29279ed543129451ec3'] /* Groups */,
title : _this._strings['a37ede293936e29279ed543129451ec3'] /* Groups */,
- xns : Roo,
- '|xns' : 'Roo',
- xtype : 'GridPanel',
listeners : {
activate : function() {
_this.panel = this;
listeners : {
activate : function() {
_this.panel = this;
@@
-45,14
+43,14
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
}
}
},
}
}
},
+ xns : Roo,
+ '|xns' : 'Roo',
grid : {
grid : {
+ xtype : 'Grid',
autoExpandColumn : 'name',
ddGroup : 'groupDD',
enableDrop : true,
loadMask : true,
autoExpandColumn : 'name',
ddGroup : 'groupDD',
enableDrop : true,
loadMask : true,
- xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'Grid',
listeners : {
render : function()
{
listeners : {
render : function()
{
@@
-76,28
+74,28
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
});
}
},
});
}
},
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid',
toolbar : {
toolbar : {
+ xtype : 'Toolbar',
xns : Roo,
'|xns' : 'Roo',
xns : Roo,
'|xns' : 'Roo',
- xtype : 'Toolbar',
items : [
{
items : [
{
+ xtype : 'Button',
text : _this._strings['aba9f7d7443652e858969bfc280690b1'] /* Manage Groups */,
xns : Roo.Toolbar,
'|xns' : 'Roo.Toolbar',
text : _this._strings['aba9f7d7443652e858969bfc280690b1'] /* Manage Groups */,
xns : Roo.Toolbar,
'|xns' : 'Roo.Toolbar',
- xtype : 'Button',
menu : {
menu : {
+ xtype : 'Menu',
xns : Roo.menu,
'|xns' : 'Roo.menu',
xns : Roo.menu,
'|xns' : 'Roo.menu',
- xtype : 'Menu',
items : [
{
items : [
{
+ xtype : 'Item',
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
- xns : Roo.menu,
- '|xns' : 'Roo.menu',
- xtype : 'Item',
listeners : {
click : function()
{
listeners : {
click : function()
{
@@
-108,15
+106,15
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
_this.grid.ds.load({});
});
}
_this.grid.ds.load({});
});
}
- }
+ },
+ xns : Roo.menu,
+ '|xns' : 'Roo.menu'
},
{
},
{
+ xtype : 'Item',
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/tree/leaf.gif',
text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/tree/leaf.gif',
text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
- xns : Roo.menu,
- '|xns' : 'Roo.menu',
- xtype : 'Item',
listeners : {
click : function()
{
listeners : {
click : function()
{
@@
-136,38
+134,40
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
});
}
});
}
- }
+ },
+ xns : Roo.menu,
+ '|xns' : 'Roo.menu'
},
{
},
{
+ xtype : 'Item',
cls : 'x-btn-text-icon',
icon : rootURL + '/Pman/templates/images/trash.gif',
text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
cls : 'x-btn-text-icon',
icon : rootURL + '/Pman/templates/images/trash.gif',
text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
- xns : Roo.menu,
- '|xns' : 'Roo.menu',
- xtype : 'Item',
listeners : {
click : function()
{
listeners : {
click : function()
{
- Pman.genericDelete(_this, '
Groups
');
+ Pman.genericDelete(_this, '
core_group
');
}
}
- }
+ },
+ xns : Roo.menu,
+ '|xns' : 'Roo.menu'
},
{
},
{
+ xtype : 'Separator',
xns : Roo.menu,
xns : Roo.menu,
- '|xns' : 'Roo.menu',
- xtype : 'Separator'
+ '|xns' : 'Roo.menu'
},
{
},
{
- text : _this._strings['4d1c8263ba1036754f8db14a98f9f006'] /* Reload */,
- xns : Roo.menu,
- '|xns' : 'Roo.menu',
xtype : 'Item',
xtype : 'Item',
+ text : _this._strings['4d1c8263ba1036754f8db14a98f9f006'] /* Reload */,
listeners : {
click : function (_self, e)
{
_this.grid.ds.load({});
}
listeners : {
click : function (_self, e)
{
_this.grid.ds.load({});
}
- }
+ },
+ xns : Roo.menu,
+ '|xns' : 'Roo.menu'
}
]
}
}
]
}
@@
-175,16
+175,17
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
]
},
dataSource : {
]
},
dataSource : {
+ xtype : 'Store',
remoteSort : true,
sortInfo : { field : 'name', direction: 'ASC' },
remoteSort : true,
sortInfo : { field : 'name', direction: 'ASC' },
- xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'Store',
listeners : {
beforeload : function (_self, o)
{
o.params = o.params || {};
listeners : {
beforeload : function (_self, o)
{
o.params = o.params || {};
+
o.params.type =2;
o.params.type =2;
+
+ o.params._add_everyone = 1;
},
load : function (_self, records, options)
{
},
load : function (_self, records, options)
{
@@
-195,14
+196,17
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
Pman.Tab.AdminContacts.grid.footer.onClick('first');
}
},
Pman.Tab.AdminContacts.grid.footer.onClick('first');
}
},
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
proxy : {
proxy : {
+ xtype : 'HttpProxy',
method : 'GET',
method : 'GET',
- url : baseURL + '/Roo/
Groups.ph
p',
+ url : baseURL + '/Roo/
core_grou
p',
xns : Roo.data,
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'HttpProxy'
+ '|xns' : 'Roo.data'
},
reader : {
},
reader : {
+ xtype : 'JsonReader',
fields : [
{
'name': 'id',
fields : [
{
'name': 'id',
@@
-289,15
+293,12
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
root : 'data',
totalProperty : 'total',
xns : Roo.data,
root : 'data',
totalProperty : 'total',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'JsonReader'
+ '|xns' : 'Roo.data'
}
},
dropTarget : {
}
},
dropTarget : {
- ddGroup : 'groupDD',
- xns : Roo.dd,
- '|xns' : 'Roo.dd',
xtype : 'DropTarget',
xtype : 'DropTarget',
+ ddGroup : 'groupDD',
listeners : {
drop : function (source, e, data)
{
listeners : {
drop : function (source, e, data)
{
@@
-411,13
+412,13
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
// Roo.log('add');
//}
}
// Roo.log('add');
//}
}
- }
+ },
+ xns : Roo.dd,
+ '|xns' : 'Roo.dd'
},
sm : {
},
sm : {
- singleSelect : true,
- xns : Roo.grid,
- '|xns' : 'Roo.grid',
xtype : 'RowSelectionModel',
xtype : 'RowSelectionModel',
+ singleSelect : true,
listeners : {
afterselectionchange : function (_self)
{
listeners : {
afterselectionchange : function (_self)
{
@@
-426,10
+427,13
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
c.getActivePanel().grid.footer.onClick('first');
}
c.getActivePanel().grid.footer.onClick('first');
}
- }
+ },
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid'
},
colModel : [
{
},
colModel : [
{
+ xtype : 'ColumnModel',
dataIndex : 'name',
header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
renderer : function(v,x,r) {
dataIndex : 'name',
header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
renderer : function(v,x,r) {
@@
-456,8
+460,7
@@
Pman.Tab.AdminContactsGroup = new Roo.XComponent({
},
width : 200,
xns : Roo.grid,
},
width : 200,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'ColumnModel'
+ '|xns' : 'Roo.grid'
}
]
}
}
]
}