projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
db65fd1
)
Pman.Tab.AdminOffice.bjs
author
Alan Knowles
<alan@akbkhome.com>
Thu, 12 May 2011 08:21:52 +0000
(16:21 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 12 May 2011 08:21:52 +0000
(16:21 +0800)
Pman.Tab.AdminOffice.bjs
patch
|
blob
|
history
diff --git
a/Pman.Tab.AdminOffice.bjs
b/Pman.Tab.AdminOffice.bjs
index
2c3624d
..
740489a
100644
(file)
--- a/
Pman.Tab.AdminOffice.bjs
+++ b/
Pman.Tab.AdminOffice.bjs
@@
-30,9
+30,12
@@
"|xns": "Roo.grid",
"items": [
{
"|xns": "Roo.grid",
"items": [
{
+ "listeners": {
+ "beforeload": "function (_self, o)\n{\n try {\n var sm = Pman.Tab.Companies.grid.getSelectionModel();\n sm = sm.getSelected();\n if (!sm || !sm.data.id) {\n // mask??\n return false;\n }\n \n o.params.company_id = sm.data.id ;\n } catch (e) {\n return false;\n }\n \n }"
+ },
"*prop": "dataSource",
"*prop": "dataSource",
- "xtype": "Store",
"remoteSort": true,
"remoteSort": true,
+ "xtype": "Store",
"|sortInfo": "{ field : 'name', direction: 'ASC' }",
"|xns": "Roo.data",
"items": [
"|sortInfo": "{ field : 'name', direction: 'ASC' }",
"|xns": "Roo.data",
"items": [