Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-weekly
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
intranet-timesheet2-weekly
Commits
ef1937b7
Commit
ef1937b7
authored
Mar 30, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- WIP
parent
dfc48c49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
index.adp
www/index.adp
+22
-9
No files found.
www/index.adp
View file @
ef1937b7
...
...
@@ -50,7 +50,20 @@ function launchTimesheetWeeklyLogging(){
// Row-Editor for the hour grid
var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
clicksToMoveEditor: 2,
clicksToEdit: 1,
clicksToMoveEditor: 1,
listeners: {
edit: function(editor, context, eOpts) {
// Check that the endTime is later than startTime
context.record.save();
}
}
});
// Cell-Editor for the hour grid
var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1,
clicksToMoveEditor: 1,
listeners: {
edit: function(editor, context, eOpts) {
// Check that the endTime is later than startTime
...
...
@@ -114,13 +127,13 @@ function launchTimesheetWeeklyLogging(){
editor: { xtype: 'pocombotree', store: taskTreeStore, queryMode: 'local', displayField: 'project_name', valueField: 'id'}
},
// { text: "Date", xtype: 'datecolumn', dataIndex: 'day', renderer: Ext.util.Format.dateRenderer('Y-m-d'), editor: {xtype: 'datefield',allowBlank: true}},
{ text: "Mon", width:
5
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Tue", width:
5
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Wed", width:
5
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Thu", width:
5
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Fri", width:
5
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Sat", width:
5
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Sun", width:
5
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Mon", width:
6
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Tue", width:
6
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Wed", width:
6
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Thu", width:
6
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Fri", width:
6
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Sat", width:
6
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
{ text: "Sun", width:
6
0, dataIndex: 'hours', editor: { xtype: 'numberfield', minValue: 0 }},
// { text: "Note", flex: 1, dataIndex: 'note', editor: { allowBlank: true }}
]
});
...
...
@@ -247,7 +260,7 @@ function launchTimesheetWeeklyLogging(){
*/
onGridBeforeEdit: function(editor, context, eOpts) {
console.log('GanttButtonController.onGridBeforeEdit');
console.log(context.record);
//
console.log(context.record);
// Return true to indicate to the editor that it's OK to edit
return true;
...
...
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