Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-interval
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-interval
Commits
997be409
Commit
997be409
authored
Sep 15, 2014
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Timesheet Interval Editor:
Fixed logic when clicking into the editor while logging
parent
d271e41c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
timesheet-interval.adp
lib/timesheet-interval.adp
+12
-2
No files found.
lib/timesheet-interval.adp
View file @
997be409
...
...
@@ -225,7 +225,7 @@ function launchTreePanel(){
// Listen to changes in the selction model in order to enable/disable the start/stop buttons
me.hourIntervalGrid.on('selectionchange', this.onGridSelectionChange, me);
//
//
Listen to the Grid Editor that allows to specify start- and end time
me.hourIntervalGrid.on('edit', this.onGridEdit, me);
me.hourIntervalGrid.on('beforeedit', this.onGridBeforeEdit, me);
...
...
@@ -237,10 +237,20 @@ function launchTreePanel(){
return this;
},
/*
* The user has double-clicked on the row editor in order to
* manually fill in the values. This procedure automatically
* fills in the end_time.
*/
onGridBeforeEdit: function(editor, context, eOpts) {
console.log('GanttButtonController.onGridBeforeEdit');
console.log(context.record);
// Complete the hourInterval created when starting to log
this.loggingInterval.set('interval_end_time', /\d\d:\d\d/.exec(""+new Date())[0]);
// 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