Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sencha-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
sencha-core
Commits
4ef1bb9b
Commit
4ef1bb9b
authored
Feb 05, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Working on generic member field for TreeGrid and
associated modal window to edit membership
parent
f47b43e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
ObjectMemberPanel.js
www/view/ObjectMemberPanel.js
+1
-1
POObjectMembers.js
www/view/field/POObjectMembers.js
+27
-3
No files found.
www/view/ObjectMemberPanel.js
View file @
4ef1bb9b
/*
* ObjectMemberPanel.js
*
* Copyright (c) 2011 - 20
14
]project-open[ Business Solutions, S.L.
* Copyright (c) 2011 - 20
21
]project-open[ Business Solutions, S.L.
* This file may be used under the terms of the GNU General Public
* License version 3.0 or alternatively unter the terms of the ]po[
* FL or CL license as specified in www.project-open.com/en/license.
...
...
www/view/field/POObjectMembers.js
View file @
4ef1bb9b
...
...
@@ -21,6 +21,7 @@ Ext.define('PO.view.field.POObjectMembers', {
debug
:
false
,
memberStore
:
null
,
// Config: Store with users as candidates for members
groupStore
:
null
,
gridPanelId
:
null
,
// ID of underlying panel that has a selection model
statics
:
{
/**
...
...
@@ -174,6 +175,17 @@ Ext.define('PO.view.field.POObjectMembers', {
return
result
;
}
},
// End statics
// Add specialkey listener
initComponent
:
function
()
{
var
me
=
this
;
if
(
me
.
debug
)
console
.
log
(
'POObjectMembers.initComponent: Starting'
);
this
.
callParent
();
me
.
gridPanelId
=
me
.
initialConfig
.
gridPanelId
;
if
(
me
.
debug
)
console
.
log
(
'POObjectMembers.initComponent: Finished'
);
},
initValue
:
function
()
{
var
me
=
this
;
...
...
@@ -229,14 +241,26 @@ Ext.define('PO.view.field.POObjectMembers', {
var
me
=
this
;
if
(
me
.
debug
)
console
.
log
(
'POObjectMembers.onTriggerClick: Starting'
);
alert
(
'ToDo'
);
var
panel
=
Ext
.
getCmp
(
me
.
gridPanelId
);
var
value
=
panel
.
getSelectionModel
().
getLastSelected
();
var
taskPropertyPanel
=
Ext
.
getCmp
(
'objectMemberPanel'
);
taskPropertyPanel
.
setValue
(
value
);
taskPropertyPanel
.
setActiveTab
(
'taskPropertyMembers'
);
taskPropertyPanel
.
show
();
// Show handled by picker management
var
treePanel
=
Ext
.
getCmp
(
'ganttTreePanel'
);
var
value
=
treePanel
.
getSelectionModel
().
getLastSelected
();
var
taskPropertyPanel
=
Ext
.
getCmp
(
'ganttTaskPropertyPanel'
);
taskPropertyPanel
.
setValue
(
value
);
taskPropertyPanel
.
setActiveTab
(
'taskProperty
Member
s'
);
taskPropertyPanel
.
setActiveTab
(
'taskProperty
Assignment
s'
);
taskPropertyPanel
.
show
();
// Show handled by picker management
}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment